test: reintroduce meaningful checks behind a NOLINT directive

This commit is contained in:
Michele Caini
2024-01-09 10:32:37 +01:00
parent ac4c38a10a
commit 8177f8934c

View File

@@ -25,6 +25,7 @@ TEST(Flow, Constructors) {
const entt::flow temp{flow, flow.get_allocator()};
const entt::flow other{std::move(flow), flow.get_allocator()};
ASSERT_EQ(flow.size(), 0u); // NOLINT
ASSERT_EQ(other.size(), 3u);
ASSERT_EQ(other[0u], 0u);
@@ -69,10 +70,9 @@ TEST(Flow, Move) {
flow.bind(3);
flow.bind(99);
ASSERT_EQ(flow.size(), 3u);
entt::flow other{std::move(flow)};
ASSERT_EQ(flow.size(), 0u); // NOLINT
ASSERT_EQ(other.size(), 3u);
ASSERT_EQ(other[0u], 0u);
@@ -86,6 +86,7 @@ TEST(Flow, Move) {
other = std::move(flow);
ASSERT_EQ(other.size(), 1u);
ASSERT_EQ(flow.size(), 0u); // NOLINT
ASSERT_EQ(other[0u], 1u);
}