Tests: make allocator assertions more readable

This commit is contained in:
Benoit Blanchon committed 2023-07-26 09:28:21 +02:00
1 parent 30ec507989
commit 9a11d98117
31 files changed
+1127 -1287

No files matched your search

+3 -2
View File
@@ -39,7 +39,8 @@ TEST_CASE("JsonArray::clear()") {
for (int i = 0; i < ARDUINOJSON_POOL_CAPACITY; i++)
array.add(i);
REQUIRE(spy.log() == AllocatorLog()
<< AllocatorLog::Allocate(sizeofPool()));
REQUIRE(spy.log() == AllocatorLog{
Allocate(sizeofPool()),
});
}
}