Skip to content

Commit a6bd90a

Browse files
committed
Improved tests for task 38.
1 parent 8adbb73 commit a6bd90a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/s0038_count_and_say/SolutionTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
public class SolutionTest {
99
@Test
1010
public void countAndSay() {
11-
assertThat(new Solution().countAndSay(1), equalTo("1"));
11+
Solution solution = new Solution();
12+
assertThat(solution.countAndSay(1), equalTo("1"));
13+
assertThat(solution.countAndSay(2), equalTo("11"));
14+
assertThat(solution.countAndSay(3), equalTo("21"));
15+
assertThat(solution.countAndSay(4), equalTo("1211"));
1216
}
1317
}

0 commit comments

Comments
 (0)