Fix a Lexer test

This commit is contained in:
Nathan Braswell
2013-11-03 20:44:07 -05:00
parent 77f2b0a3e5
commit 1117fdf0cb

View File

@@ -89,7 +89,7 @@ void Lexer::test() {
lex.setInput("blah");
s = lex.next();
assert(s.getName() == "a|b" && s.getValue() == "b");
assert(lex.next() == Symbol());
assert(lex.next() == Symbol("$INVALID$", true));
}
// Lexer can consume all the input at once.