Skip to content

Commit 6ff7aee

Browse files
committed
Added test
1 parent d00cc7a commit 6ff7aee

File tree

1 file changed

+8
-0
lines changed
  • src/test/java/g3101_3200/s3160_find_the_number_of_distinct_colors_among_the_balls

1 file changed

+8
-0
lines changed

src/test/java/g3101_3200/s3160_find_the_number_of_distinct_colors_among_the_balls/SolutionTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,12 @@ void queryResults2() {
2020
.queryResults(4, new int[][] {{0, 1}, {1, 2}, {2, 2}, {3, 4}, {4, 5}}),
2121
equalTo(new int[] {1, 2, 2, 3, 4}));
2222
}
23+
24+
@Test
25+
void queryResults3() {
26+
assertThat(
27+
new Solution()
28+
.queryResults(1, new int[][] {{0, 2}, {1, 10}, {0, 10}, {0, 3}, {1, 5}}),
29+
equalTo(new int[] {1, 2, 1, 2, 2}));
30+
}
2331
}

0 commit comments

Comments
 (0)