We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05942b6 commit 4159af6Copy full SHA for 4159af6
extras/tests/JsonDeserializer/array.cpp
@@ -7,7 +7,7 @@
7
8
#include "Allocators.hpp"
9
10
-using ArduinoJson::detail::sizeofArray;
+using namespace ArduinoJson::detail;
11
12
TEST_CASE("deserialize JSON array") {
13
SpyingAllocator spy;
@@ -92,8 +92,12 @@ TEST_CASE("deserialize JSON array") {
92
REQUIRE(arr[0].as<double>() == Approx(4.2123456));
93
REQUIRE(arr[1] == -7E89);
94
REQUIRE(spy.log() == AllocatorLog{
95
- Allocate(sizeofPool()),
96
- Reallocate(sizeofPool(), sizeofPool(4)),
+ Allocate(sizeofPool<VariantData>()),
+ Allocate(sizeofPool<EightByteValue>()),
97
+ Reallocate(sizeofPool<VariantData>(),
98
+ sizeofPool<VariantData>(2)),
99
+ Reallocate(sizeofPool<EightByteValue>(),
100
+ sizeofPool<EightByteValue>(2)),
101
});
102
}
103
0 commit comments