We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent304bf9a commit6144fd5Copy full SHA for 6144fd5
src/test/java/com/fishercoder/_785Test.java
@@ -5,6 +5,8 @@
5
importorg.junit.BeforeClass;
6
importorg.junit.Test;
7
8
+importstaticorg.junit.Assert.assertEquals;
9
+
10
publicclass_785Test {
11
privatestatic_785.Solution1solution1;
12
privatestaticint[][]graph;
@@ -19,6 +21,13 @@ public static void setup() {
19
21
publicvoidtest1() {
20
22
graph =CommonUtils.convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray("[1,2,3],[0,2],[0,1,3],[0,2]");
23
CommonUtils.print2DIntArray(graph);
-solution1.isBipartite(graph);
24
+assertEquals(false,solution1.isBipartite(graph));
25
+ }
26
27
+@Test
28
+publicvoidtest2() {
29
+graph =CommonUtils.convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray("[1,3],[0,2],[1,3],[0,2]");
30
+CommonUtils.print2DIntArray(graph);
31
+assertEquals(true,solution1.isBipartite(graph));
32
}
33