forked from bblanchon/ArduinoJson
JsonString: change default ownership to Copied
This commit is contained in:
@@ -139,7 +139,8 @@ TEST_CASE("serialize MsgPack value") {
|
||||
|
||||
SECTION("str 32") {
|
||||
std::string shortest(65536, '?');
|
||||
checkVariant(JsonString(shortest.c_str(), true), // force store by pointer
|
||||
checkVariant(JsonString(shortest.c_str(),
|
||||
JsonString::Linked), // force store by pointer
|
||||
"\xDB\x00\x01\x00\x00"_s + shortest);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user