XtextTest.testNotTerminal will never fail because assertNotSame does a ==
comparison instead of a .equals comparison on 2 strings, which will always
return false given the way testNonTerminal uses it.
Replacing the last line of the method with "assertFalse(input, ("RULE_" +
unexpectedTerminal).equals(getTokenType(token)));" would fix it.
Original issue reported on code.google.com by pathe...@gmail.com on 12 Jun 2013 at 6:48
Original issue reported on code.google.com by
pathe...@gmail.com
on 12 Jun 2013 at 6:48