Skip to content

Commit

Permalink
test: NOLINT review
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 23, 2023
1 parent 8beaea8 commit 5ea8f03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/entt/core/compressed_pair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ TEST(CompressedPair, ConstructCopyMove) {
}

TEST(CompressedPair, PiecewiseConstruct) {
std::vector<int> vec{42}; // NOLINT
const entt::compressed_pair<test::empty, test::empty> empty{std::piecewise_construct, std::make_tuple(), std::make_tuple()};
const entt::compressed_pair<std::vector<int>, std::size_t> pair{std::piecewise_construct, std::forward_as_tuple(std::move(vec)), std::make_tuple(sizeof(empty))};
const entt::compressed_pair<std::vector<int>, std::size_t> pair{std::piecewise_construct, std::forward_as_tuple(std::vector<int>{42}), std::make_tuple(sizeof(empty))};

ASSERT_EQ(pair.first().size(), 1u);
ASSERT_EQ(pair.second(), sizeof(empty));
Expand Down

0 comments on commit 5ea8f03

Please sign in to comment.