Skip to content

Commit beac897

Browse files
committed
Added test for tak 74.
1 parent 2866c4f commit beac897

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/g0001_0100/s0074_search_a_2d_matrix/SolutionTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ public void searchMatrix() {
1111
int[][] input = {{1, 3, 5, 7}, {10, 11, 16, 20}, {23, 30, 34, 60}};
1212
assertThat(new Solution().searchMatrix(input, 3), equalTo(true));
1313
}
14+
15+
@Test
16+
public void searchMatrix2() {
17+
int[][] input = {{1, 3, 5, 7}, {10, 11, 16, 20}, {23, 30, 34, 60}};
18+
assertThat(new Solution().searchMatrix(input, 13), equalTo(false));
19+
}
1420
}

0 commit comments

Comments
 (0)