Skip to content

Commit b3aaec3

Browse files
committed
Added test
1 parent 39131a7 commit b3aaec3

File tree

1 file changed

+8
-0
lines changed
  • src/test/java/g3501_3600/s3553_minimum_weighted_subgraph_with_the_required_paths_ii

1 file changed

+8
-0
lines changed

src/test/java/g3501_3600/s3553_minimum_weighted_subgraph_with_the_required_paths_ii/SolutionTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,12 @@ void minimumWeight2() {
2323
.minimumWeight(new int[][] {{1, 0, 8}, {0, 2, 7}}, new int[][] {{0, 1, 2}}),
2424
equalTo(new int[] {15}));
2525
}
26+
27+
@Test
28+
void minimumWeight3() {
29+
assertThat(
30+
new Solution()
31+
.minimumWeight(new int[][] {{1, 0, 4}, {2, 0, 5}}, new int[][] {{1, 0, 2}}),
32+
equalTo(new int[] {9}));
33+
}
2634
}

0 commit comments

Comments
 (0)