From f98d6ccd70850708ca9d7fc98c561556148b397d Mon Sep 17 00:00:00 2001 From: Alan Du Date: Tue, 30 May 2017 23:49:26 +0100 Subject: Encode control characters with hex not decimal Fix https://github.com/alexcrichton/toml-rs/issues/178 --- tests/valid/unicode-escape.json | 1 + tests/valid/unicode-escape.toml | 1 + 2 files changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/valid/unicode-escape.json b/tests/valid/unicode-escape.json index 8c09dc0..32948c6 100644 --- a/tests/valid/unicode-escape.json +++ b/tests/valid/unicode-escape.json @@ -1,4 +1,5 @@ { + "answer1": {"type": "string", "value": "\u000B"}, "answer4": {"type": "string", "value": "\u03B4α"}, "answer8": {"type": "string", "value": "\u03B4β"} } diff --git a/tests/valid/unicode-escape.toml b/tests/valid/unicode-escape.toml index 20198f4..c0d5a25 100644 --- a/tests/valid/unicode-escape.toml +++ b/tests/valid/unicode-escape.toml @@ -1,2 +1,3 @@ +answer1 = "\u000B" answer4 = "\u03B4α" answer8 = "\U000003B4β" -- cgit v1.2.3