CollectionData: addSlot() returns an iterator

This commit is contained in:
Benoit Blanchon
2023-07-03 11:53:56 +02:00
parent fac5b5a7a7
commit c37990d791
8 changed files with 51 additions and 41 deletions

View File

@ -48,7 +48,8 @@ TEST_CASE("JsonDocument::garbageCollect()") {
REQUIRE(doc.memoryUsage() == sizeofObject(2) + sizeofString(7));
REQUIRE(doc.as<std::string>() == "{\"dancing\":2}");
REQUIRE(spyingAllocator.log() == AllocatorLog()
<< AllocatorLog::AllocateFail(4096));
REQUIRE(spyingAllocator.log() ==
AllocatorLog() << AllocatorLog::AllocateFail(4096)
<< AllocatorLog::AllocateFail(sizeofString(7)));
}
}