Skip to content

Commit

Permalink
Check that the indices are being parsed from the SemanticGraph the sa…
Browse files Browse the repository at this point in the history
…me way they are being labeled in the valueOf test
  • Loading branch information
AngledLuffa committed Oct 14, 2023
1 parent ed0f2de commit 2819c8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/src/edu/stanford/nlp/semgraph/SemanticGraphTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ public void testValueOfReuseIndices() {
Assert.assertEquals(sg.getAllEdges(D, E).size(), 1);
Assert.assertEquals(sg.getParentsWithReln(E, "obj").size(), 1);
Assert.assertEquals(sg.getParentsWithReln(E, "dep").size(), 0);

Assert.assertEquals(A.index(), 0);
Assert.assertEquals(B.index(), 1);
Assert.assertEquals(C.index(), 2);
Assert.assertEquals(D.index(), 3);
Assert.assertEquals(E.index(), 4);
}

}

0 comments on commit 2819c8e

Please sign in to comment.