Replace JsonString::Ownership with bool

This commit is contained in:
Benoit Blanchon
2024-11-26 14:32:29 +01:00
parent 8931651317
commit ed5f890d28
9 changed files with 23 additions and 23 deletions

View File

@@ -139,8 +139,7 @@ TEST_CASE("serialize MsgPack value") {
SECTION("str 32") {
std::string shortest(65536, '?');
checkVariant(JsonString(shortest.c_str(),
JsonString::Linked), // force store by pointer
checkVariant(JsonString(shortest.c_str(), true), // force store by pointer
"\xDB\x00\x01\x00\x00"_s + shortest);
}