1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

🐛 fixed a bug in the unget function

This commit is contained in:
Niels Lohmann
2018-10-07 16:48:45 +02:00
parent 011b15dd08
commit 6d09cdec34
4 changed files with 21 additions and 16 deletions

View File

@ -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)
{