Explorar o código

test: drop a bunch of NOLINT

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
20aa62c584
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      test/entt/graph/flow.cpp

+ 5 - 4
test/entt/graph/flow.cpp

@@ -1,3 +1,4 @@
+#include <array>
 #include <cstddef>
 #include <cstddef>
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
@@ -148,8 +149,8 @@ TEST(Flow, RO) {
 
 
 TEST(Flow, RangeRO) {
 TEST(Flow, RangeRO) {
     entt::flow flow{};
     entt::flow flow{};
-    const entt::id_type res[2u]{10, 11};                    // NOLINT
-    flow.bind(0).ro(res, res + 1).bind(1).ro(res, res + 2); // NOLINT
+    const std::array<entt::id_type, 2u> res{10, 11};
+    flow.bind(0).ro(res.begin(), res.begin() + 1u).bind(1).ro(res.begin(), res.end());
     auto graph = flow.graph();
     auto graph = flow.graph();
 
 
     ASSERT_EQ(flow.size(), 2u);
     ASSERT_EQ(flow.size(), 2u);
@@ -172,8 +173,8 @@ TEST(Flow, RW) {
 
 
 TEST(Flow, RangeRW) {
 TEST(Flow, RangeRW) {
     entt::flow flow{};
     entt::flow flow{};
-    const entt::id_type res[2u]{10, 11};                    // NOLINT
-    flow.bind(0).rw(res, res + 1).bind(1).rw(res, res + 2); // NOLINT
+    const std::array<entt::id_type, 2u> res{10, 11};
+    flow.bind(0).rw(res.begin(), res.begin() + 1u).bind(1).rw(res.begin(), res.end());
     auto graph = flow.graph();
     auto graph = flow.graph();
 
 
     ASSERT_EQ(flow.size(), 2u);
     ASSERT_EQ(flow.size(), 2u);