Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable test cases that are commented out #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tests/test_array_utils.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ pub fun testRange() {
var expected: [Int] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Test.assertEqual(expected, range)

// TODO: Uncomment the lines below to see the code coverage change
// range = arrayUtils.range(10, 0)
range = arrayUtils.range(10, 0)

// expected = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
// Test.assertEqual(expected, range)
expected = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
Test.assertEqual(expected, range)
}

pub fun testTransform() {
Expand Down
3 changes: 1 addition & 2 deletions tests/test_foo_contract.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ pub let foo = FooContract()

pub fun testGetIntegerTrait() {
// Arrange
// TODO: Uncomment the line below, to see how code coverage changes.
let testInputs: {Int: String} = {
-1: "Negative",
0: "Zero",
9: "Small",
99: "Big",
// 999: "Huge",
999: "Huge",
1001: "Enormous",
1729: "Harshad",
8128: "Harmonic",
Expand Down