diff --git a/extras/tests/JsonDeserializer/array.cpp b/extras/tests/JsonDeserializer/array.cpp index e6fb18d5..ad534604 100644 --- a/extras/tests/JsonDeserializer/array.cpp +++ b/extras/tests/JsonDeserializer/array.cpp @@ -7,7 +7,7 @@ #include "Allocators.hpp" -using ArduinoJson::detail::sizeofArray; +using namespace ArduinoJson::detail; TEST_CASE("deserialize JSON array") { SpyingAllocator spy; @@ -92,8 +92,12 @@ TEST_CASE("deserialize JSON array") { REQUIRE(arr[0].as() == Approx(4.2123456)); REQUIRE(arr[1] == -7E89); REQUIRE(spy.log() == AllocatorLog{ - Allocate(sizeofPool()), - Reallocate(sizeofPool(), sizeofPool(4)), + Allocate(sizeofPool()), + Allocate(sizeofPool()), + Reallocate(sizeofPool(), + sizeofPool(2)), + Reallocate(sizeofPool(), + sizeofPool(2)), }); }