Skip to content

Commit 183e0eb

Browse files
committed
Fix a couple comments
1 parent 37a71fb commit 183e0eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)