diff options
author | Michael Sloan <mgsloan@gmail.com> | 2020-01-30 00:55:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 08:55:36 +0100 |
commit | bb675c5f56c6ddb5d450df53d2685f519dc8d78c (patch) | |
tree | dac7bf5544e05d91c49adb7239d4643d28559ba1 /test-suite | |
parent | f60e3423426c7322533433f9d40e0f282a05d220 (diff) | |
download | milf-rs-bb675c5f56c6ddb5d450df53d2685f519dc8d78c.tar.gz milf-rs-bb675c5f56c6ddb5d450df53d2685f519dc8d78c.zip |
Fix roundtripping of \u001f and \u007f in toml string literals (#372)
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/tests/valid/string-escapes.json | 8 | ||||
-rw-r--r-- | test-suite/tests/valid/string-escapes.toml | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/tests/valid/string-escapes.json b/test-suite/tests/valid/string-escapes.json index 62dac51..e3b2d94 100644 --- a/test-suite/tests/valid/string-escapes.json +++ b/test-suite/tests/valid/string-escapes.json @@ -46,5 +46,13 @@ "notunicode4": { "type": "string", "value": "This string does not have a unicode \\\u0075 escape." + }, + "delete": { + "type": "string", + "value": "This string has a \u007f delete control code." + }, + "unitseparator": { + "type": "string", + "value": "This string has a \u001f unit separator control code." } } diff --git a/test-suite/tests/valid/string-escapes.toml b/test-suite/tests/valid/string-escapes.toml index c5d4954..152c6ad 100644 --- a/test-suite/tests/valid/string-escapes.toml +++ b/test-suite/tests/valid/string-escapes.toml @@ -10,3 +10,5 @@ notunicode1 = "This string does not have a unicode \\u escape." notunicode2 = "This string does not have a unicode \u005Cu escape." notunicode3 = "This string does not have a unicode \\u0075 escape." notunicode4 = "This string does not have a unicode \\\u0075 escape." +delete = "This string has a \u007F delete control code." +unitseparator = "This string has a \u001F unit separator control code." |