Skip to content

Commit

Permalink
format EnumArray's RangeConstructorMoveOnlyTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Younes Reda committed Nov 27, 2023
1 parent eb04bf1 commit 1878464
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/enum_array_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ TEST(EnumArray, RangeConstructor)
TEST(EnumArray, RangeConstructorMoveOnly)
{
// Compile only check that the range constructor moves r-values
EnumArray<TestEnum1, MockMoveableButNotCopyable> s1{fixed_containers::std_transition::from_range, std::array{std::make_pair(TestEnum1::ONE,MockMoveableButNotCopyable()),
std::make_pair(TestEnum1::TWO,MockMoveableButNotCopyable())}};
constexpr EnumArray<TestEnum1, MockMoveableButNotCopyable> s1{
fixed_containers::std_transition::from_range,
std::array{std::make_pair(TestEnum1::ONE, MockMoveableButNotCopyable()),
std::make_pair(TestEnum1::TWO, MockMoveableButNotCopyable())}};
}

TEST(EnumArray, At)
Expand Down

0 comments on commit 1878464

Please sign in to comment.