Skip to content

Commit b0355d8

Browse files
authored
Improved tasks 401, 417.
1 parent e80b5a2 commit b0355d8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src.save/test/java/g0401_0500/s0401_binary_watch/SolutionTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ void readBinaryWatch() {
1616
"0:01", "0:02", "0:04", "0:08", "0:16", "0:32", "1:00", "2:00",
1717
"4:00", "8:00")));
1818
}
19+
20+
@Test
21+
void readBinaryWatch2() {
22+
assertThat(new Solution().readBinaryWatch(9), equalTo(Arrays.asList()));
23+
}
1924
}

src.save/test/java/g0401_0500/s0417_pacific_atlantic_water_flow/SolutionTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@ void pacificAtlantic() {
1818
new Solution().pacificAtlantic(matrix),
1919
equalTo(ArrayUtils.getLists(new int[][] {{0, 2}, {1, 1}, {1, 2}, {2, 0}})));
2020
}
21+
22+
@Test
23+
void pacificAtlantic2() {
24+
int[][] matrix = {{1}};
25+
assertThat(
26+
new Solution().pacificAtlantic(matrix),
27+
equalTo(ArrayUtils.getLists(new int[][] {{0, 0}})));
28+
}
2129
}

0 commit comments

Comments
 (0)