diff options
1 files changed, 7 insertions, 0 deletions
| -rw-r--r-- | JSImpl/test/LexerTests.cpp | 7 |
diff --git a/JSImpl/test/LexerTests.cpp b/JSImpl/test/LexerTests.cpp index a1a25d3..965730e 100644 --- a/JSImpl/test/LexerTests.cpp +++ b/JSImpl/test/LexerTests.cpp @@ -212,3 +212,10 @@ TEST(Lexer, CommentError) res.Error.Column == 3); } +TEST(Lexer, UnexpectedToken) +{ + auto res = Tokenize("a#4"); + ASSERT_TRUE(!res.IsSuccessful && + res.Error.Column == 1); +} + |
