mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-31 03:07:35 +02:00
Clang-format
This commit is contained in:
@ -197,10 +197,10 @@ 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>(), sizeofPool<EightByteValue>(1)),
|
Reallocate(sizeofPool<EightByteValue>(),
|
||||||
|
sizeofPool<EightByteValue>(1)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,10 +220,10 @@ 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>(), sizeofPool<EightByteValue>(1)),
|
Reallocate(sizeofPool<EightByteValue>(),
|
||||||
|
sizeofPool<EightByteValue>(1)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -243,10 +243,10 @@ 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>(), sizeofPool<EightByteValue>(1)),
|
Reallocate(sizeofPool<EightByteValue>(),
|
||||||
|
sizeofPool<EightByteValue>(1)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user