Skip to content

Commit c0bd318

Browse files
Update ZeroOneBfsTest.java
1 parent 73b29d7 commit c0bd318

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/test/java/com/thealgorithms/graph/ZeroOneBfsTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,9 @@ void invalidArgs() {
6060
List<List<int[]>> adj = makeAdj(n);
6161
// invalid weight
6262
adj.get(0).add(new int[] {1, 2});
63-
assertThrows(IllegalArgumentException.class,
64-
() -> ZeroOneBfs.shortestPaths(n, adj, 0));
63+
assertThrows(IllegalArgumentException.class, () -> ZeroOneBfs.shortestPaths(n, adj, 0));
6564
// invalid src
66-
assertThrows(IllegalArgumentException.class,
67-
() -> ZeroOneBfs.shortestPaths(n, adj, -1));
68-
assertThrows(IllegalArgumentException.class,
69-
() -> ZeroOneBfs.shortestPaths(n, adj, 2));
65+
assertThrows(IllegalArgumentException.class, () -> ZeroOneBfs.shortestPaths(n, adj, -1));
66+
assertThrows(IllegalArgumentException.class, () -> ZeroOneBfs.shortestPaths(n, adj, 2));
7067
}
7168
}

0 commit comments

Comments
 (0)