Add std/json quirk_allow_backslash_capital_u

This commit is contained in:
Nigel Tao committed 2020-03-19 23:20:45 +11:00
1 parent 97f7f28218
commit 83e7da0a6a
4 files changed
+175 -13

No files matched your search

+5
View File
@@ -1119,6 +1119,11 @@ test_wuffs_json_decode_quirk_allow_backslash_etc() {
.str = "\"\\a\"",
.quirk = WUFFS_JSON__QUIRK_ALLOW_BACKSLASH_A,
},
{
.want = 0x0001F4A9,
.str = "\"\\U0001F4A9\"",
.quirk = WUFFS_JSON__QUIRK_ALLOW_BACKSLASH_CAPITAL_U,
},
{
.want = 0x1B,
.str = "\"\\e\"",