Remove capacity from JsonDocument's constructor

This commit is contained in:
Benoit Blanchon committed 2023-07-18 09:08:55 +02:00
1 parent 42b2840009
commit 0f319e7ca4
162 files changed
+438 -500

No files matched your search

@@ -12,7 +12,7 @@ using namespace ArduinoJson::detail;
TEST_CASE("StringBuilder") {
ControllableAllocator controllableAllocator;
SpyingAllocator spyingAllocator(&controllableAllocator);
ResourceManager resources(0, &spyingAllocator);
ResourceManager resources(&spyingAllocator);
SECTION("Empty string") {
StringBuilder str(&resources);
@@ -101,7 +101,7 @@ static StringNode* addStringToPool(ResourceManager& resources, const char* s) {
}
TEST_CASE("StringBuilder::save() deduplicates strings") {
ResourceManager resources(4096);
ResourceManager resources;
SECTION("Basic") {
auto s1 = addStringToPool(resources, "hello");