diff options
Diffstat (limited to 'tests/lexer/driver.cxx')
-rw-r--r-- | tests/lexer/driver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lexer/driver.cxx b/tests/lexer/driver.cxx index e3543da..a3819f5 100644 --- a/tests/lexer/driver.cxx +++ b/tests/lexer/driver.cxx @@ -99,6 +99,7 @@ main () assert (lex ("f\"oo$ba\"r") == tokens ({"foo", "$", "bar", ""})); assert (lex ("\"foo bar") == tokens ({"<lexer error>"})); + assert (lex ("\"foo $") == tokens ({"foo ", "$", "<lexer error>"})); assert (lex ("\"foo $bar") == tokens ({"foo ", "$", "<lexer error>"})); // Combinations. |