@@ -247,8 +247,8 @@ test_assign(nvobj::pool<root> &pop, nvobj::persistent_ptr<Container> &ptr)
247247
248248 /* Iterators and references for inline_string are not
249249 * stable. */
250- if (std::is_same< typename Container::mapped_type,
251- nvobjex::inline_string >::value) {
250+ if (pmem::detail::is_inline_string<
251+ typename Container::mapped_type >::value) {
252252 it = ptr->find (key<Container>(test_key));
253253 }
254254
@@ -303,8 +303,8 @@ test_assign_internal_leaf(nvobj::pool<root> &pop,
303303
304304 /* Iterators and references for inline_string are not
305305 * stable. */
306- if (std::is_same< typename Container::mapped_type,
307- nvobjex::inline_string >::value) {
306+ if (pmem::detail::is_inline_string<
307+ typename Container::mapped_type >::value) {
308308 it = ptr->find (" " );
309309 }
310310
@@ -322,8 +322,8 @@ test_assign_internal_leaf(nvobj::pool<root> &pop,
322322
323323 /* Iterators and references for inline_string are not
324324 * stable. */
325- if (std::is_same< typename Container::mapped_type,
326- nvobjex::inline_string >::value) {
325+ if (pmem::detail::is_inline_string<
326+ typename Container::mapped_type >::value) {
327327 it = ptr->find (" aaa" );
328328 }
329329
@@ -366,8 +366,8 @@ test_assign_root(nvobj::pool<root> &pop, nvobj::persistent_ptr<Container> &ptr)
366366
367367 /* Iterators and references for inline_string are not
368368 * stable. */
369- if (std::is_same< typename Container::mapped_type,
370- nvobjex::inline_string >::value) {
369+ if (pmem::detail::is_inline_string<
370+ typename Container::mapped_type >::value) {
371371 it = ptr->find (key<Container>(0 ));
372372 }
373373
@@ -562,6 +562,22 @@ test(int argc, char *argv[])
562562 test_try_emplace<container_inline_s_wchart, 1 >(
563563 pop, pop.root ()->radix_inline_s_wchart );
564564
565+ test_emplace (pop, pop.root ()->radix_inline_s_wchart_wchart );
566+ test_assign<container_inline_s_wchart_wchart, 1 >(
567+ pop, pop.root ()->radix_inline_s_wchart_wchart );
568+ test_assign<container_inline_s_wchart_wchart, 1024 >(
569+ pop, pop.root ()->radix_inline_s_wchart_wchart );
570+ test_assign_root<container_inline_s_wchart_wchart, 1 >(
571+ pop, pop.root ()->radix_inline_s_wchart_wchart );
572+ test_assign_root<container_inline_s_wchart_wchart, 1024 >(
573+ pop, pop.root ()->radix_inline_s_wchart_wchart );
574+ test_erase<container_inline_s_wchart_wchart, 1024 >(
575+ pop, pop.root ()->radix_inline_s_wchart_wchart );
576+ test_insert_or_assign<container_inline_s_wchart_wchart, 1 >(
577+ pop, pop.root ()->radix_inline_s_wchart_wchart );
578+ test_try_emplace<container_inline_s_wchart_wchart, 1 >(
579+ pop, pop.root ()->radix_inline_s_wchart_wchart );
580+
565581 pop.close ();
566582}
567583
0 commit comments