Skip to content

Commit 4159af6

Browse files
committed
JsonDeserializerTests pass
1 parent 05942b6 commit 4159af6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

extras/tests/JsonDeserializer/array.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "Allocators.hpp"
99

10-
using ArduinoJson::detail::sizeofArray;
10+
using namespace ArduinoJson::detail;
1111

1212
TEST_CASE("deserialize JSON array") {
1313
SpyingAllocator spy;
@@ -92,8 +92,12 @@ TEST_CASE("deserialize JSON array") {
9292
REQUIRE(arr[0].as<double>() == Approx(4.2123456));
9393
REQUIRE(arr[1] == -7E89);
9494
REQUIRE(spy.log() == AllocatorLog{
95-
Allocate(sizeofPool()),
96-
Reallocate(sizeofPool(), sizeofPool(4)),
95+
Allocate(sizeofPool<VariantData>()),
96+
Allocate(sizeofPool<EightByteValue>()),
97+
Reallocate(sizeofPool<VariantData>(),
98+
sizeofPool<VariantData>(2)),
99+
Reallocate(sizeofPool<EightByteValue>(),
100+
sizeofPool<EightByteValue>(2)),
97101
});
98102
}
99103

0 commit comments

Comments
 (0)