mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 10:17:39 +02:00
Tests: replace constants with sizeofString(n)
This commit is contained in:
@ -200,7 +200,7 @@ TEST_CASE("JsonDocument::shrinkToFit()") {
|
||||
|
||||
SECTION("unaligned") {
|
||||
doc.add(std::string("?")); // two bytes in the string pool
|
||||
REQUIRE(doc.memoryUsage() == sizeofObject(1) + 2);
|
||||
REQUIRE(doc.memoryUsage() == sizeofObject(1) + sizeofString(1));
|
||||
|
||||
doc.shrinkToFit();
|
||||
|
||||
|
Reference in New Issue
Block a user