Skip to content

Commit 9e072b4

Browse files
committed
Enable test cases that are commented out
1 parent db29ecc commit 9e072b4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/test_array_utils.cdc

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ pub fun testRange() {
2525
var expected: [Int] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
2626
Test.assertEqual(expected, range)
2727

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

31-
// expected = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
32-
// Test.assertEqual(expected, range)
30+
expected = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
31+
Test.assertEqual(expected, range)
3332
}
3433

3534
pub fun testTransform() {

tests/test_foo_contract.cdc

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ pub let foo = FooContract()
55

66
pub fun testGetIntegerTrait() {
77
// Arrange
8-
// TODO: Uncomment the line below, to see how code coverage changes.
98
let testInputs: {Int: String} = {
109
-1: "Negative",
1110
0: "Zero",
1211
9: "Small",
1312
99: "Big",
14-
// 999: "Huge",
13+
999: "Huge",
1514
1001: "Enormous",
1615
1729: "Harshad",
1716
8128: "Harmonic",

0 commit comments

Comments
 (0)