Explorar o código

test: drop a bunch of NOLINT

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
6e0c2baf9d
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      test/entt/locator/locator.cpp

+ 3 - 2
test/entt/locator/locator.cpp

@@ -68,8 +68,9 @@ TEST_F(ServiceLocator, ResetHandle) {
 
 TEST_F(ServiceLocator, ElementWithDeleter) {
     derived_service service{1};
-    entt::locator<base_service>::reset(&service, [](base_service *serv) {
-        *static_cast<derived_service *>(serv) = derived_service{2}; // NOLINT
+    entt::locator<base_service>::reset(&service, [&service](base_service *serv) {
+        ASSERT_EQ(serv, &service);
+        service = derived_service{2};
     });
 
     ASSERT_TRUE(entt::locator<base_service>::has_value());