From 3f6fff7d0c871bf9d1f3bbb98ca6e8344ac8a633 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sat, 31 May 2025 16:29:46 +0000 Subject: [PATCH] Fix JsonVariantTests --- extras/tests/JsonVariant/set.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extras/tests/JsonVariant/set.cpp b/extras/tests/JsonVariant/set.cpp index ab94dea9..aee1086a 100644 --- a/extras/tests/JsonVariant/set.cpp +++ b/extras/tests/JsonVariant/set.cpp @@ -8,7 +8,7 @@ #include "Allocators.hpp" #include "Literals.hpp" -using ArduinoJson::detail::sizeofObject; +using namespace ArduinoJson::detail; enum ErrorCode { ERROR_01 = 1, ERROR_10 = 10 }; @@ -199,8 +199,8 @@ TEST_CASE("JsonVariant::set() when there is enough memory") { REQUIRE(variant.as() == 1.2); REQUIRE(spy.log() == AllocatorLog{ - Allocate(sizeofPool()), - Reallocate(sizeofPool(), sizeofPool(1)), // one extension slot + Allocate(sizeofPool()), + Reallocate(sizeofPool(), sizeofPool(1)), }); } @@ -222,8 +222,8 @@ TEST_CASE("JsonVariant::set() when there is enough memory") { REQUIRE(variant.as() == -2147483649LL); REQUIRE(spy.log() == AllocatorLog{ - Allocate(sizeofPool()), - Reallocate(sizeofPool(), sizeofPool(1)), // one extension slot + Allocate(sizeofPool()), + Reallocate(sizeofPool(), sizeofPool(1)), }); } @@ -245,8 +245,8 @@ TEST_CASE("JsonVariant::set() when there is enough memory") { REQUIRE(variant.as() == 4294967296); REQUIRE(spy.log() == AllocatorLog{ - Allocate(sizeofPool()), - Reallocate(sizeofPool(), sizeofPool(1)), // one extension slot + Allocate(sizeofPool()), + Reallocate(sizeofPool(), sizeofPool(1)), }); }