File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/src/edu/stanford/nlp/semgraph/semgrex/ssurgeon Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void readXMLRemoveEdgeIterate() {
9898 "<ssurgeon-pattern-list>" ,
9999 " <ssurgeon-pattern>" ,
100100 " <uid>38</uid>" ,
101- " <notes>This is a simple test of addEdge </notes>" ,
101+ " <notes>This is a simple test of removeEdge </notes>" ,
102102 " <semgrex>" + XMLUtils .escapeXML ("{}=a1 > {}=a2" ) + "</semgrex>" ,
103103 " <edit-list>removeEdge -gov a1 -dep a2 -reln dep</edit-list>" ,
104104 " </ssurgeon-pattern>" ,
@@ -1174,7 +1174,7 @@ public void checkAnnotationConversionErrors() {
11741174 }
11751175
11761176 assertNotNull (AnnotationLookup .toCoreKey ("headidx" ));
1177- // This will also fail, this time because Integer cannot be converted from a String
1177+ // This will also fail, this time because the property set is an Integer and the value is not legal
11781178 add = String .join (newline ,
11791179 "<ssurgeon-pattern-list>" ,
11801180 " <ssurgeon-pattern>" ,
@@ -1188,7 +1188,7 @@ public void checkAnnotationConversionErrors() {
11881188
11891189 try {
11901190 List <SsurgeonPattern > patterns = inst .readFromString (add );
1191- throw new AssertionError ("Expected a failure because IntPair is not readable from a String in CoreLabel " );
1191+ throw new AssertionError ("Expected a failure in CoreLabel because the String given should not have been turned into an Integer " );
11921192 } catch (SsurgeonParseException e ) {
11931193 // yay
11941194 }
You can’t perform that action at this time.
0 commit comments