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() {
98
98
"<ssurgeon-pattern-list>" ,
99
99
" <ssurgeon-pattern>" ,
100
100
" <uid>38</uid>" ,
101
- " <notes>This is a simple test of addEdge </notes>" ,
101
+ " <notes>This is a simple test of removeEdge </notes>" ,
102
102
" <semgrex>" + XMLUtils .escapeXML ("{}=a1 > {}=a2" ) + "</semgrex>" ,
103
103
" <edit-list>removeEdge -gov a1 -dep a2 -reln dep</edit-list>" ,
104
104
" </ssurgeon-pattern>" ,
@@ -1174,7 +1174,7 @@ public void checkAnnotationConversionErrors() {
1174
1174
}
1175
1175
1176
1176
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
1178
1178
add = String .join (newline ,
1179
1179
"<ssurgeon-pattern-list>" ,
1180
1180
" <ssurgeon-pattern>" ,
@@ -1188,7 +1188,7 @@ public void checkAnnotationConversionErrors() {
1188
1188
1189
1189
try {
1190
1190
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 " );
1192
1192
} catch (SsurgeonParseException e ) {
1193
1193
// yay
1194
1194
}
You can’t perform that action at this time.
0 commit comments