Skip to content

Commit 2efab6d

Browse files
committed
This part of the test was a duplicate of an earlier test
1 parent 947ab2c commit 2efab6d

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

test/src/edu/stanford/nlp/semgraph/semgrex/ssurgeon/SsurgeonTest.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -783,34 +783,6 @@ public void readXMLAddDepNodeAttributes() {
783783
assertNull(blueVertex.tag());
784784
assertEquals("blue", blueVertex.value());
785785

786-
// use "dep" as the dependency so as to be language-agnostic in this test
787-
add = String.join(newline,
788-
"<ssurgeon-pattern-list>",
789-
" <ssurgeon-pattern>",
790-
" <uid>38</uid>",
791-
" <notes>Add a word after the word before antennae (just to test the position)</notes>",
792-
// have to bomb-proof the pattern
793-
" <semgrex>" + XMLUtils.escapeXML("{word:antennae}=antennae - {}=prev !> {word:blue}") + "</semgrex>",
794-
" <edit-list>addDep -gov antennae -reln dep -word blue -position +prev</edit-list>",
795-
" </ssurgeon-pattern>",
796-
"</ssurgeon-pattern-list>");
797-
patterns = inst.readFromString(add);
798-
assertEquals(patterns.size(), 1);
799-
addSsurgeon = patterns.get(0);
800-
801-
sg = SemanticGraph.valueOf("[has-2 nsubj> Jennifer-1 obj> antennae-3]");
802-
blueVertex = sg.getNodeByIndexSafe(4);
803-
assertNull(blueVertex);
804-
newSG = addSsurgeon.iterate(sg);
805-
expected = SemanticGraph.valueOf("[has-2 nsubj> Jennifer-1 obj> [antennae-4 dep> blue-3]]");
806-
assertEquals(expected, newSG);
807-
// the Ssurgeon we just created should not put a tag on the word
808-
// but it SHOULD put blue immediately before antennae
809-
blueVertex = newSG.getNodeByIndexSafe(3);
810-
assertNotNull(blueVertex);
811-
assertNull(blueVertex.tag());
812-
assertEquals("blue", blueVertex.value());
813-
814786

815787
// use "dep" as the dependency so as to be language-agnostic in this test
816788
// this time, be cheeky and use some whitespace in the word

0 commit comments

Comments
 (0)