Skip to content

Commit

Permalink
Add a test for a scalar 0D data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Aug 22, 2023
1 parent 32a158b commit 871b730
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/arrayextents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ TEST_CASE("ArrayExtents.dim0")
x2 = 0;
}

TEST_CASE("ArrayExtents.dim0.int")
{
auto mapping = llama::mapping::SoA{llama::ArrayExtents{}, int{}};
auto view = llama::allocView(mapping);
view() = 42;
CHECK(view() == 42);
}

TEMPLATE_LIST_TEST_CASE("ArrayExtents.dim1.dynamic", "", SizeTypes)
{
const TestType n = 16;
Expand Down

0 comments on commit 871b730

Please sign in to comment.