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)), }); }