forked from bblanchon/ArduinoJson
Rename VALUE_IS_OWNED_RAW
to VALUE_IS_RAW_STRING
This commit is contained in:
@ -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();
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user