mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-15 04:22:17 -05:00
27 lines
826 B
Plaintext
27 lines
826 B
Plaintext
|
{"tests" : [
|
||
|
{"description": "Invalid Unicode character U+DFFF",
|
||
|
"doubleEscaped":true,
|
||
|
"input": "\\uDFFF",
|
||
|
"output":["ParseError", ["Character", "\\uFFFD"]]},
|
||
|
|
||
|
{"description": "Invalid Unicode character U+D800",
|
||
|
"doubleEscaped":true,
|
||
|
"input": "\\uD800",
|
||
|
"output":["ParseError", ["Character", "\\uFFFD"]]},
|
||
|
|
||
|
{"description": "Invalid Unicode character U+DFFF with valid preceding character",
|
||
|
"doubleEscaped":true,
|
||
|
"input": "a\\uDFFF",
|
||
|
"output":["ParseError", ["Character", "a\\uFFFD"]]},
|
||
|
|
||
|
{"description": "Invalid Unicode character U+D800 with valid following character",
|
||
|
"doubleEscaped":true,
|
||
|
"input": "\\uD800a",
|
||
|
"output":["ParseError", ["Character", "\\uFFFDa"]]},
|
||
|
|
||
|
{"description":"CR followed by U+0000",
|
||
|
"input":"\r\u0000",
|
||
|
"output":[["Character", "\n"], "ParseError", ["Character", "\u0000"]],
|
||
|
"ignoreErrorOrder":true}
|
||
|
]
|
||
|
}
|