Rename VALUE_IS_OWNED_RAW to VALUE_IS_RAW_STRING

This commit is contained in:
Benoit Blanchon
2023-05-02 10:03:37 +02:00
parent a035116018
commit 86772d33bc
7 changed files with 19 additions and 19 deletions

View File

@ -97,8 +97,8 @@ TEST_CASE("JsonDocument::shrinkToFit()") {
<< AllocatorLog::Reallocate(4096, 0));
}
SECTION("owned raw") {
doc.set(serialized(std::string("[{},12]")));
SECTION("raw string") {
doc.set(serialized("[{},12]"));
doc.shrinkToFit();

View File

@ -37,8 +37,8 @@ TEST_CASE("JsonVariant::memoryUsage()") {
REQUIRE(var.memoryUsage() == doc.memoryUsage());
}
SECTION("returns size of owned raw") {
var.set(serialized(std::string("hello")));
SECTION("returns size of raw string") {
var.set(serialized("hello"));
REQUIRE(var.memoryUsage() == sizeofString(5));
REQUIRE(var.memoryUsage() == doc.memoryUsage());
}