Skip to content

Commit 75ac000

Browse files
committed
Improved test for task 12.
1 parent a6bd90a commit 75ac000

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/s0012_integer_to_roman/SolutionTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
public class SolutionTest {
99
@Test
1010
public void intToRoman() {
11-
assertThat(new Solution().intToRoman(3), equalTo("III"));
11+
Solution solution = new Solution();
12+
assertThat(solution.intToRoman(3), equalTo("III"));
13+
assertThat(solution.intToRoman(4), equalTo("IV"));
14+
assertThat(solution.intToRoman(9), equalTo("IX"));
15+
assertThat(solution.intToRoman(58), equalTo("LVIII"));
16+
assertThat(solution.intToRoman(1994), equalTo("MCMXCIV"));
1217
}
1318
}

0 commit comments

Comments
 (0)