Fix a Lexer test
This commit is contained in:
@@ -89,7 +89,7 @@ void Lexer::test() {
|
|||||||
lex.setInput("blah");
|
lex.setInput("blah");
|
||||||
s = lex.next();
|
s = lex.next();
|
||||||
assert(s.getName() == "a|b" && s.getValue() == "b");
|
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.
|
// Lexer can consume all the input at once.
|
||||||
|
|||||||
Reference in New Issue
Block a user