From ed7839eabb5181cd80530b60a6cd843690cd11eb Mon Sep 17 00:00:00 2001 From: DerThorsten Date: Sat, 16 Nov 2024 16:31:11 +0100 Subject: [PATCH] sparse union --- test/test_builder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_builder.cpp b/test/test_builder.cpp index bd24ebb8d..02b8074e6 100644 --- a/test/test_builder.cpp +++ b/test/test_builder.cpp @@ -202,9 +202,9 @@ namespace sparrow } } } - TEST_CASE("union") + TEST_CASE("sparse-union") { - SUBCASE("sparse") + SUBCASE("simple") { using variant_type = std::variant; std::vector v{ @@ -214,6 +214,8 @@ namespace sparrow }; auto arr = sparrow::build(v); + using arr_type = std::decay_t; + static_assert(std::is_same_v); sanity_check(arr); REQUIRE_EQ(arr.size(), 3);