Remove capacity from JsonDocument's constructor

This commit is contained in:
Benoit Blanchon
2023-07-18 09:08:55 +02:00
parent 42b2840009
commit 0f319e7ca4
162 changed files with 438 additions and 500 deletions
+1 -3
View File
@@ -7,11 +7,9 @@
#include "Allocators.hpp"
using ArduinoJson::detail::sizeofArray;
TEST_CASE("JsonDocument::overflowed()") {
TimebombAllocator allocator(10);
JsonDocument doc(0, &allocator);
JsonDocument doc(&allocator);
SECTION("returns false on a fresh object") {
allocator.setCountdown(0);