summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-13 09:58:02 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-14 13:04:42 +0200
commit1250fc680050848d777bbb37aa294ad5cff20436 (patch)
tree15f668cc32500aa505b73e4bf9f8f3526951a10e
parentbbfb02609ef2a93b8fa0e97a5e298805f82d4f37 (diff)
w
-rw-r--r--test/handle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/handle.cpp b/test/handle.cpp
index 563e56ae..c062d251 100644
--- a/test/handle.cpp
+++ b/test/handle.cpp
@@ -40,7 +40,7 @@ void test_page1()
Page page{start_index};
auto& item0 = page.allocate(1);
auto handle0 = item0.handle;
- fm_assert(item0.handle == Handle{start_index});
+ fm_assert(item0.handle == Handle{start_index, 0});
fm_assert(item0.object.value == 1);
page.deallocate(item0.handle);
@@ -54,6 +54,9 @@ void test_page1()
fm_assert(int{item1.handle.counter != handle0.counter} + int{item2.handle.counter != handle0.counter} == 1);
page.deallocate(item2.handle);
page.deallocate(item1.handle);
+ fm_assert(item0.object.value == 0);
+ fm_assert(item1.object.value == 0);
+ fm_assert(item2.object.value == 0);
}
} // namespace