@@ -876,15 +876,15 @@ BOOST_AUTO_TEST_CASE(hashmap__set_commit__record__expected)
876876 hashmap_<link5, key10, flex_record::size> instance{ head_store, body_store, 2 };
877877 BOOST_REQUIRE (instance.create ());
878878
879+ constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
879880 constexpr auto size = link5::size + array_count<key10> + flex_record::size;
880- const auto link = instance.set_link (flex_record{ 0x01020304_u32 });
881+ const auto link = instance.set_link (key1, flex_record{ 0x01020304_u32 });
881882 BOOST_REQUIRE (!link.is_terminal ());
882883 BOOST_REQUIRE_EQUAL (link, 0u );
883884 BOOST_REQUIRE_EQUAL (body_store.buffer ().size (), size);
884885 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffffffffffffffffffffffffffffffffff" ));
885- BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000000000000000000000004030201 " ));
886+ BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000102030405060708090a04030201 " ));
886887
887- constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
888888 BOOST_REQUIRE (instance.commit (link, key1));
889889 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffff0000000000ffffffffffffffffffff" ));
890890 BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" ffffffffff0102030405060708090a04030201" ));
@@ -899,16 +899,16 @@ BOOST_AUTO_TEST_CASE(hashmap__allocate_set_commit__record__expected)
899899 hashmap_<link5, key10, flex_record::size> instance{ head_store, body_store, 2 };
900900 BOOST_REQUIRE (instance.create ());
901901
902+ constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
902903 constexpr auto size = link5::size + array_count<key10> + flex_record::size;
903904 const auto link = instance.allocate (1 );
904905 BOOST_REQUIRE_EQUAL (link, 0u );
905906 BOOST_REQUIRE_EQUAL (body_store.buffer ().size (), size);
906907
907- BOOST_REQUIRE (instance.set (link, flex_record{ 0x01020304_u32 }));
908+ BOOST_REQUIRE (instance.set (link, key1, flex_record{ 0x01020304_u32 }));
908909 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffffffffffffffffffffffffffffffffff" ));
909- BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000000000000000000000004030201 " ));
910+ BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000102030405060708090a04030201 " ));
910911
911- constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
912912 BOOST_REQUIRE (instance.commit (link, key1));
913913 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffff0000000000ffffffffffffffffffff" ));
914914 BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" ffffffffff0102030405060708090a04030201" ));
@@ -921,13 +921,13 @@ BOOST_AUTO_TEST_CASE(hashmap__allocate_put1__record__expected)
921921 test::chunk_storage body_store{};
922922 hashmap_<link5, key10, flex_record::size> instance{ head_store, body_store, 2 };
923923 BOOST_REQUIRE (instance.create ());
924-
924+
925+ constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
925926 constexpr auto size = link5::size + array_count<key10> + sizeof (uint32_t );
926927 const auto link = instance.allocate (1 );
927928 BOOST_REQUIRE_EQUAL (link, 0u );
928929 BOOST_REQUIRE_EQUAL (body_store.buffer ().size (), size);
929930
930- constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
931931 BOOST_REQUIRE (instance.put (link, key1, flex_record{ 0x01020304_u32 }));
932932 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffff0000000000ffffffffffffffffffff" ));
933933 BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" ffffffffff0102030405060708090a04030201" ));
@@ -955,16 +955,16 @@ BOOST_AUTO_TEST_CASE(hashmap__set_commit_link__slab__expected)
955955 hashmap_<link5, key10, flex_slab::size> instance{ head_store, body_store, 2 };
956956 BOOST_REQUIRE (instance.create ());
957957
958+ constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
958959 constexpr auto size = link5::size + array_count<key10> + sizeof (uint32_t );
959960 link5 link{};
960- BOOST_REQUIRE (instance.set_link (link, flex_slab{ 0x01020304_u32 }));
961+ BOOST_REQUIRE (instance.set_link (link, key1, flex_slab{ 0x01020304_u32 }));
961962 BOOST_REQUIRE (!link.is_terminal ());
962963 BOOST_REQUIRE_EQUAL (link, 0u );
963964 BOOST_REQUIRE_EQUAL (body_store.buffer ().size (), size);
964965 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffffffffffffffffffffffffffffffffff" ));
965- BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000000000000000000000004030201 " ));
966+ BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000102030405060708090a04030201 " ));
966967
967- constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
968968 BOOST_REQUIRE (!instance.commit_link (link, key1).is_terminal ());
969969 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffff0000000000ffffffffffffffffffff" ));
970970 BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" ffffffffff0102030405060708090a04030201" ));
@@ -978,16 +978,16 @@ BOOST_AUTO_TEST_CASE(hashmap__allocate_set_commit__slab__expected)
978978 hashmap_<link5, key10, flex_slab::size> instance{ head_store, body_store, 2 };
979979 BOOST_REQUIRE (instance.create ());
980980
981+ constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
981982 constexpr auto size = link5::size + array_count<key10> + sizeof (uint32_t );
982983 const auto link = instance.allocate (size);
983984 BOOST_REQUIRE_EQUAL (link, 0u );
984985 BOOST_REQUIRE_EQUAL (body_store.buffer ().size (), size);
985986
986- BOOST_REQUIRE (instance.set (link, flex_slab{ 0x01020304_u32 }));
987+ BOOST_REQUIRE (instance.set (link, key1, flex_slab{ 0x01020304_u32 }));
987988 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffffffffffffffffffffffffffffffffff" ));
988- BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000000000000000000000004030201 " ));
989+ BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" 00000000000102030405060708090a04030201 " ));
989990
990- constexpr key10 key1{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a };
991991 BOOST_REQUIRE (instance.commit (link, key1));
992992 BOOST_REQUIRE_EQUAL (head_store.buffer (), base16_chunk (" 0000000000ffffffffff0000000000ffffffffffffffffffff" ));
993993 BOOST_REQUIRE_EQUAL (body_store.buffer (), base16_chunk (" ffffffffff0102030405060708090a04030201" ));
0 commit comments