support \uXXXX format

This commit is contained in:
cozis
2022-04-24 21:38:26 +02:00
parent f5b0cda5ad
commit f34961a58f
2 changed files with 433 additions and 24 deletions
+11
View File
@@ -22,6 +22,17 @@ static const struct {
TEST("{}"),
TEST("{\"key\":5}"),
TEST("{\"key1\":5,\"key2\":3}"),
TEST("\"\""),
TEST("\"\\f\""),
TEST("\"\\t\""),
TEST("\"\\n\""),
TEST("\"\\b\""),
TEST("\"\\r\""),
TEST("\"\\\\\""),
TEST("\"\\uFFFF\""),
TEST("\"\\u0010\\uFFFF\""),
};
#undef TEST