forked from bblanchon/ArduinoJson
Clang-format
This commit is contained in:
@ -197,11 +197,11 @@ TEST_CASE("JsonVariant::set() when there is enough memory") {
|
|||||||
REQUIRE(result == true);
|
REQUIRE(result == true);
|
||||||
REQUIRE(variant.is<double>() == true);
|
REQUIRE(variant.is<double>() == true);
|
||||||
REQUIRE(variant.as<double>() == 1.2);
|
REQUIRE(variant.as<double>() == 1.2);
|
||||||
REQUIRE(spy.log() ==
|
REQUIRE(spy.log() == AllocatorLog{
|
||||||
AllocatorLog{
|
Allocate(sizeofPool<EightByteValue>()),
|
||||||
Allocate(sizeofPool<EightByteValue>()),
|
Reallocate(sizeofPool<EightByteValue>(),
|
||||||
Reallocate(sizeofPool<EightByteValue>(), sizeofPool<EightByteValue>(1)),
|
sizeofPool<EightByteValue>(1)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("int32_t") {
|
SECTION("int32_t") {
|
||||||
@ -220,11 +220,11 @@ TEST_CASE("JsonVariant::set() when there is enough memory") {
|
|||||||
REQUIRE(result == true);
|
REQUIRE(result == true);
|
||||||
REQUIRE(variant.is<int64_t>() == true);
|
REQUIRE(variant.is<int64_t>() == true);
|
||||||
REQUIRE(variant.as<int64_t>() == -2147483649LL);
|
REQUIRE(variant.as<int64_t>() == -2147483649LL);
|
||||||
REQUIRE(spy.log() ==
|
REQUIRE(spy.log() == AllocatorLog{
|
||||||
AllocatorLog{
|
Allocate(sizeofPool<EightByteValue>()),
|
||||||
Allocate(sizeofPool<EightByteValue>()),
|
Reallocate(sizeofPool<EightByteValue>(),
|
||||||
Reallocate(sizeofPool<EightByteValue>(), sizeofPool<EightByteValue>(1)),
|
sizeofPool<EightByteValue>(1)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("uint32_t") {
|
SECTION("uint32_t") {
|
||||||
@ -243,11 +243,11 @@ TEST_CASE("JsonVariant::set() when there is enough memory") {
|
|||||||
REQUIRE(result == true);
|
REQUIRE(result == true);
|
||||||
REQUIRE(variant.is<uint64_t>() == true);
|
REQUIRE(variant.is<uint64_t>() == true);
|
||||||
REQUIRE(variant.as<uint64_t>() == 4294967296);
|
REQUIRE(variant.as<uint64_t>() == 4294967296);
|
||||||
REQUIRE(spy.log() ==
|
REQUIRE(spy.log() == AllocatorLog{
|
||||||
AllocatorLog{
|
Allocate(sizeofPool<EightByteValue>()),
|
||||||
Allocate(sizeofPool<EightByteValue>()),
|
Reallocate(sizeofPool<EightByteValue>(),
|
||||||
Reallocate(sizeofPool<EightByteValue>(), sizeofPool<EightByteValue>(1)),
|
sizeofPool<EightByteValue>(1)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("JsonDocument") {
|
SECTION("JsonDocument") {
|
||||||
|
Reference in New Issue
Block a user