From 4159af66ebadf19e54f560be72819ea7963ceee4 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sat, 31 May 2025 16:41:09 +0200 Subject: [PATCH] JsonDeserializerTests pass --- extras/tests/JsonDeserializer/array.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)), }); }