Beispiel #1
0
 @Test
 public void testEqualsWithMismatchedText() throws Exception {
   TreeWizard wiz = new TreeWizard(adaptor, tokens);
   CommonTree t1 = (CommonTree) wiz.create("(A B[foo] C)");
   CommonTree t2 = (CommonTree) wiz.create("(A B C)");
   boolean same = TreeWizard.equals(t1, t2, adaptor);
   assertTrue(!same);
 }