Skip to content

Commit aae6047

Browse files
committed
Added test
1 parent d58f43b commit aae6047

File tree

1 file changed

+20
-0
lines changed
  • src/test/java/g3601_3700/s3604_minimum_time_to_reach_destination_in_directed_graph

1 file changed

+20
-0
lines changed

src/test/java/g3601_3700/s3604_minimum_time_to_reach_destination_in_directed_graph/SolutionTest.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,24 @@ void minTime3() {
2828
assertThat(
2929
new Solution().minTime(3, new int[][] {{1, 0, 1, 3}, {1, 2, 3, 5}}), equalTo(-1));
3030
}
31+
32+
@Test
33+
void minTest4() {
34+
assertThat(
35+
new Solution()
36+
.minTime(
37+
5,
38+
new int[][] {
39+
{1, 3, 17, 18},
40+
{1, 3, 0, 7},
41+
{0, 1, 0, 3},
42+
{3, 2, 1, 20},
43+
{1, 2, 25, 25},
44+
{0, 3, 13, 14},
45+
{1, 0, 11, 15},
46+
{0, 4, 19, 21},
47+
{2, 0, 4, 20}
48+
}),
49+
equalTo(20));
50+
}
3151
}

0 commit comments

Comments
 (0)