Add extra cases.

This commit is contained in:
Benoit Marty 2023-02-15 15:06:34 +01:00
parent f6711a3d16
commit 4cf78795bd
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class SpecialRoundTest {
sut.round(1000) shouldBeEqualTo 1_000
sut.round(1001) shouldBeEqualTo 1_000
sut.round(1499) shouldBeEqualTo 1_500
sut.round(1500) shouldBeEqualTo 1_500
sut.round(1501) shouldBeEqualTo 1_500
}
@ -45,6 +46,7 @@ class SpecialRoundTest {
sut.round(1000) shouldBeEqualTo 1_000
sut.round(1001) shouldBeEqualTo 1_000
sut.round(1499) shouldBeEqualTo 1_000
sut.round(1500) shouldBeEqualTo 2_000
sut.round(1501) shouldBeEqualTo 2_000
}
}