ftrifin / xtext-utils

Automatically exported from code.google.com/p/xtext-utils
0 stars 0 forks source link

testNotTerminal does not work correctly #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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