Skip to content

Commit be434a9

Browse files
refactor 207
1 parent 8ff4074 commit be434a9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

src/test/java/com/fishercoder/_207Test.java

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
public class _207Test {
1010
private static _207.Solution1 test;
11-
private static boolean actual;
12-
private static boolean expected;
1311
private static int[][] prerequisites;
1412
private static int numCourses;
1513

@@ -22,8 +20,24 @@ public static void setup() {
2220
public void test1() {
2321
numCourses = 2;
2422
prerequisites = new int[][]{{0, 1}};
25-
expected = true;
26-
actual = test.canFinish(numCourses, prerequisites);
27-
assertEquals(expected, actual);
23+
assertEquals(true, test.canFinish(numCourses, prerequisites));
24+
}
25+
26+
@Test
27+
public void test2() {
28+
numCourses = 8;
29+
prerequisites = new int[][]{
30+
{3, 0},
31+
{3, 1},
32+
{5, 3},
33+
{5, 2},
34+
{6, 3},
35+
{6, 1},
36+
{7, 3},
37+
{7, 4},
38+
{4, 2},
39+
40+
};
41+
assertEquals(true, test.canFinish(numCourses, prerequisites));
2842
}
2943
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy