Skip to content

Commit 6144fd5

Browse files
add tests for 785
1 parent 304bf9a commit 6144fd5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/test/java/com/fishercoder/_785Test.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import org.junit.BeforeClass;
66
import org.junit.Test;
77

8+
import static org.junit.Assert.assertEquals;
9+
810
public class _785Test {
911
private static _785.Solution1 solution1;
1012
private static int[][] graph;
@@ -19,6 +21,13 @@ public static void setup() {
1921
public void test1() {
2022
graph = CommonUtils.convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray("[1,2,3],[0,2],[0,1,3],[0,2]");
2123
CommonUtils.print2DIntArray(graph);
22-
solution1.isBipartite(graph);
24+
assertEquals(false, solution1.isBipartite(graph));
25+
}
26+
27+
@Test
28+
public void test2() {
29+
graph = CommonUtils.convertLeetCodeIrregularLengths2DArrayInputIntoJavaArray("[1,3],[0,2],[1,3],[0,2]");
30+
CommonUtils.print2DIntArray(graph);
31+
assertEquals(true, solution1.isBipartite(graph));
2332
}
2433
}

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