mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
Stricter JSON standard conformance (#2153)
This commit is contained in:
committed by
Alex Fabijanic
parent
bdd0478ead
commit
2632f34e85
@@ -1086,13 +1086,13 @@ void StringTest::testJSONString()
|
||||
assert (toJSON("\\", false) == "\\\\");
|
||||
assert (toJSON("\"", false) == "\\\"");
|
||||
assert (toJSON("/", false) == "\\/");
|
||||
assert (toJSON("\a", false) == "\\a");
|
||||
assert (toJSON("\a", false) == "\\u0007");
|
||||
assert (toJSON("\b", false) == "\\b");
|
||||
assert (toJSON("\f", false) == "\\f");
|
||||
assert (toJSON("\n", false) == "\\n");
|
||||
assert (toJSON("\r", false) == "\\r");
|
||||
assert (toJSON("\t", false) == "\\t");
|
||||
assert (toJSON("\v", false) == "\\v");
|
||||
assert (toJSON("\v", false) == "\\u000B");
|
||||
assert (toJSON("a", false) == "a");
|
||||
assert (toJSON("\xD0\x82", 0) == "\xD0\x82");
|
||||
assert (toJSON("\xD0\x82", Poco::JSON_ESCAPE_UNICODE) == "\\u0402");
|
||||
|
||||
Reference in New Issue
Block a user