Skip to content

Commit 4a0aeaa

Browse files
Add more tests on string control character escaping
Verify the escaping of: - DEL: Ox7F - C1 list: 0x80-0x9F
1 parent 7185903 commit 4a0aeaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

json_tests/tests/test_json.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ fn test_write_str() {
141141
("foo", "\"foo\""),
142142
("\u{0}", "\"\\u0000\""),
143143
("\u{1F}", "\"\\u001F\""),
144+
("\u{7F}", "\"\\u007F\""),
145+
("\u{80}", "\"\\u0080\""),
146+
("\u{9F}", "\"\\u009F\""),
144147
("\"", "\"\\\"\""),
145148
("\\", "\"\\\\\""),
146149
("\u{8}", "\"\\b\""),

0 commit comments

Comments
 (0)