Skip to content

Commit eb578da

Browse files
committed
sort -> uniq
1 parent ecfec1c commit eb578da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/src/edu/stanford/nlp/semgraph/semgrex/SemgrexTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,18 +589,18 @@ public void testMultipleDepths() {
589589
runTest("{} 6,6<< {word:A}", graph, "I");
590590
}
591591

592-
/** After making SORT a separate token in the parser, we should verify that "sort" can be treated as an identifier as well */
593-
public void testSortNamedNode() {
592+
/** After making UNIQ a separate token in the parser, we should verify that "uniq" can be treated as an identifier as well */
593+
public void testUniqNamedNode() {
594594
SemanticGraph graph = makeComplicatedGraph();
595595

596596
runTest("{} >obj ({} >expl {})", graph, "A");
597597

598598
SemgrexPattern pattern =
599-
SemgrexPattern.compile("{} >obj ({} >expl {}=sort)");
599+
SemgrexPattern.compile("{} >obj ({} >expl {}=uniq)");
600600
SemgrexMatcher matcher = pattern.matcher(graph);
601601
assertTrue(matcher.find());
602602
assertEquals(1, matcher.getNodeNames().size());
603-
assertEquals("E", matcher.getNode("sort").toString());
603+
assertEquals("E", matcher.getNode("uniq").toString());
604604
assertEquals("A", matcher.getMatch().toString());
605605
assertFalse(matcher.find());
606606
}

0 commit comments

Comments
 (0)