forked from bblanchon/ArduinoJson
Support NUL inside string values (issue #1646)
This commit is contained in:
1 parent
a27398e445
commit
be70f6ddd7
22 files changed
+144
-59
No files matched your search
@@ -63,6 +63,10 @@ TEST_CASE("serializeJson(JsonVariant)") {
|
||||
SECTION("Escape tab") {
|
||||
check(std::string("hello\tworld"), "\"hello\\tworld\"");
|
||||
}
|
||||
|
||||
SECTION("NUL char") {
|
||||
check(std::string("hello\0world", 11), "\"hello\\u0000world\"");
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("SerializedValue<const char*>") {
|
||||
|
||||
Reference in new issue
Block a user