Skip to content

Commit 9541343

Browse files
committed
Added test
1 parent 3cf156e commit 9541343

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/test/java/g0901_1000/s0999_available_captures_for_rook/SolutionTest.java

+18
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,22 @@ void numRookCaptures3() {
5959
}),
6060
equalTo(3));
6161
}
62+
63+
@Test
64+
void numRookCaptures4() {
65+
assertThat(
66+
new Solution()
67+
.numRookCaptures(
68+
new char[][] {
69+
{'.', '.', '.', '.', '.', '.', '.', '.'},
70+
{'.', '.', '.', 'p', '.', '.', '.', '.'},
71+
{'.', '.', '.', 'R', '.', '.', '.', 'p'},
72+
{'.', '.', '.', '.', '.', '.', '.', '.'},
73+
{'.', '.', '.', '.', '.', '.', '.', '.'},
74+
{'.', '.', '.', 'p', '.', '.', '.', '.'},
75+
{'.', '.', '.', '.', '.', '.', '.', '.'},
76+
{'.', '.', '.', '.', '.', '.', '.', '.'}
77+
}),
78+
equalTo(3));
79+
}
6280
}

0 commit comments

Comments
 (0)