@@ -783,34 +783,6 @@ public void readXMLAddDepNodeAttributes() {
783
783
assertNull (blueVertex .tag ());
784
784
assertEquals ("blue" , blueVertex .value ());
785
785
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
-
814
786
815
787
// use "dep" as the dependency so as to be language-agnostic in this test
816
788
// this time, be cheeky and use some whitespace in the word
0 commit comments