Skip to content
Snippets Groups Projects
Commit 91189303 authored by Lawrence Chung's avatar Lawrence Chung
Browse files

comments for testGraph.java

parent 1a7a6933
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ public class TestGraph {
}
@Test
public void testV(){
public void testV(){ //Tests if graph is constructed correctly
Graph g = new Graph(8);
assertEquals(g.V(), 8);
assertNotEquals(g.V(), 7);
......@@ -20,7 +20,7 @@ public class TestGraph {
}
@Test
public void testAddEdgeAndE(){
public void testAddEdgeAndE(){//tests to see if edges are added to nodes, therefore increasing edge count
Graph g = new Graph(8);
g.addEdge(4, 3);
g.addEdge(2, 3);
......@@ -32,13 +32,4 @@ public class TestGraph {
assertNotEquals(g.E(), 4);
assertEquals(g.E(), 5);
}
@Test
public void adj(){
Graph g = new Graph(8);
g.addEdge(4, 3);
g.addEdge(2, 3);
g.addEdge(1, 2);
g.addEdge(0, 2);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment