🐛 fixed a bug in the unget function
This commit is contained in:
parent
011b15dd08
commit
6d09cdec34
4 changed files with 21 additions and 16 deletions
|
@ -1292,6 +1292,9 @@ TEST_CASE("parser class")
|
|||
CHECK(accept_helper("\"\\u01") == false);
|
||||
CHECK(accept_helper("\"\\u012") == false);
|
||||
|
||||
// unget of newline
|
||||
CHECK(parser_helper("\n123\n") == 123);
|
||||
|
||||
// invalid escapes
|
||||
for (int c = 1; c < 128; ++c)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue