21 input => "Test\0Case",
22 output => "Test\0Case",
30 input => "\\a\\b\\f\\n\\r\\t\\v\\?\\'\\\"\\0\\12\\123\\x00\\xff\\u0021\\uff01",
31 output => "\a\b\f\x0a\x0d\t\x0b?'\"\x00\x0a\x53\x00\xff\x21\x21",
37 input => "\\a\\b\\f\\n\\r\\t\\v\0\\?\\'\\\"\\0\\12\\123\\x00\\xff\\u0021\\uff01",
38 output => "\a\b\f\x0a\x0d\t\x0b\0?'\"\x00\x0a\x53\x00\xff\x21\x21",
43 # \8 and \9 are not octal
44 # \666 is \66 + '6' (JS does not allow the overflow as C does)
45 # \u00ag, \u00ga, \u0zaa, \uz0aa are not hex
46 # \xag and \xga are not hex,
51 input => "\\8\\9\\666\\u00ag\\u00ga\\u0zaa\\uz0aa\\xag\\xga\\0123\\u00a",
52 output => "89\x366u00agu00gau0zaauz0aaxagxga\x0a3u00a",
56 # \x, \x0 lack enough hex digits
78 # \u, \u0 \u01, \u012 lack enough hex digits
96 input => "\\u\\u0\\u01",
103 input => "\\u\\u0\\u01\\u012",
104 output => "uu0u01u012",
110 input => "\\u\\u0\\u01\\u012\0",
111 output => "uu0u01u012\0",
114 # A forward slash with nothing after
122 # A forward slash with NUL after