Skip to content

Commit

Permalink
sparse union
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Nov 16, 2024
1 parent 32f63b8 commit ed7839e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ namespace sparrow
}
}
}
TEST_CASE("union")
TEST_CASE("sparse-union")
{
SUBCASE("sparse")
SUBCASE("simple")
{
using variant_type = std::variant<int, float, std::string>;
std::vector<variant_type> v{
Expand All @@ -214,6 +214,8 @@ namespace sparrow
};

auto arr = sparrow::build(v);
using arr_type = std::decay_t<decltype(arr)>;
static_assert(std::is_same_v<arr_type, sparrow::sparse_union_array>);
sanity_check(arr);

REQUIRE_EQ(arr.size(), 3);
Expand Down

0 comments on commit ed7839e

Please sign in to comment.