mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Remove capacity from JsonDocument
's constructor
This commit is contained in:
@ -20,7 +20,7 @@ static StringNode* saveString(ResourceManager& resources, const char* s,
|
||||
}
|
||||
|
||||
TEST_CASE("ResourceManager::saveString()") {
|
||||
ResourceManager resources(32);
|
||||
ResourceManager resources;
|
||||
|
||||
SECTION("Duplicates different strings") {
|
||||
auto a = saveString(resources, "hello");
|
||||
@ -63,7 +63,7 @@ TEST_CASE("ResourceManager::saveString()") {
|
||||
}
|
||||
|
||||
SECTION("Returns NULL when allocation fails") {
|
||||
ResourceManager pool2(32, FailingAllocator::instance());
|
||||
ResourceManager pool2(FailingAllocator::instance());
|
||||
REQUIRE(saveString(pool2, "a") == nullptr);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user