Allocate slot before key

This commit is contained in:
Benoit Blanchon committed 2024-08-23 15:27:46 +02:00
1 parent 83516e1740
commit 386105be90
5 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -122,8 +122,8 @@ TEST_CASE("JsonDocument::shrinkToFit()") {
REQUIRE(doc.as<std::string>() == "{\"abcdefg\":42}");
REQUIRE(spyingAllocator.log() ==
AllocatorLog{
Allocate(sizeofString("abcdefg")),
Allocate(sizeofPool()),
Allocate(sizeofString("abcdefg")),
Reallocate(sizeofPool(), sizeofObject(1)),
});
}