Skip to content

Commit

Permalink
Reverted changes with sample test data that were added for testing pu…
Browse files Browse the repository at this point in the history
…rposes
  • Loading branch information
Rd4dev committed Jul 29, 2024
1 parent 800ccda commit ad611b8
Showing 1 changed file with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ class RunCoverageTest {
a + b
}
}
fun callSumNumbers(): Any {
return sumNumbers(3, 5)
}
}
}
""".trimIndent()
Expand All @@ -71,35 +67,8 @@ class RunCoverageTest {
class AddNumsTest {
@Test
fun testSumNumbers() {
for (i in 1..10) {
assertEquals(AddNums.sumNumbers(i, 0), i)
}
val sum1 = AddNums.sumNumbers(12, 2)
assertEquals(sum1, 14)
val callSum1 = AddNums.callSumNumbers()
assertEquals(callSum1, 8)
val callSum2 = AddNums.callSumNumbers()
assertEquals(callSum2, 8)
assertEquals(AddNums.sumNumbers(0, 1), 1)
assertEquals(AddNums.sumNumbers(3, 4), 7)
assertEquals(AddNums.sumNumbers(10, 4), 14)
assertEquals(AddNums.sumNumbers(0, 0), "Both numbers are zero")
assertEquals(AddNums.sumNumbers(0, 0), "Both numbers are zero")
}
@Test
fun testSumNumbers2() {
for (i in 1..10) {
assertEquals(AddNums.sumNumbers(i, 0), i)
}
assertEquals(AddNums.sumNumbers(1, 0), 1)
assertEquals(AddNums.sumNumbers(6, 4), 10)
assertEquals(AddNums.sumNumbers(10, 4), 14)
assertEquals(AddNums.sumNumbers(0, 0), "Both numbers are zero")
assertEquals(AddNums.sumNumbers(0, 0), "Both numbers are zero")
}
}
Expand Down

0 comments on commit ad611b8

Please sign in to comment.