Skip to content

Commit

Permalink
Enable test cases that are commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Aug 10, 2023
1 parent 9d5e060 commit 901be45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
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

0 comments on commit 901be45

Please sign in to comment.