Преглед изворни кода

monostate: try to make the CI happy again

skypjack пре 3 дана
родитељ
комит
fc86c732e8
1 измењених фајлова са 7 додато и 6 уклоњено
  1. 7 6
      test/entt/core/monostate.cpp

+ 7 - 6
test/entt/core/monostate.cpp

@@ -5,17 +5,18 @@
 TEST(Monostate, Functionalities) {
     using namespace entt::literals;
 
-    const bool b_pre = entt::monostate<entt::hashed_string{"foobar"}>{};
-    const int i_pre = entt::monostate<"foobar"_hs>{};
+    static constexpr entt::id_type tag = "tag"_hs;
+    const bool b_pre = entt::monostate<tag>{};
+    const int i_pre = entt::monostate<tag>{};
 
     ASSERT_FALSE(b_pre);
     ASSERT_EQ(i_pre, int{});
 
-    entt::monostate<"foobar"_hs>{} = true;
-    entt::monostate_v<"foobar"_hs> = 2;
+    entt::monostate<tag>{} = true;
+    entt::monostate_v<tag> = 2;
 
-    const bool &b_post = entt::monostate<"foobar"_hs>{};
-    const int &i_post = entt::monostate_v<entt::hashed_string{"foobar"}>;
+    const bool &b_post = entt::monostate<tag>{};
+    const int &i_post = entt::monostate_v<tag>;
 
     ASSERT_TRUE(b_post);
     ASSERT_EQ(i_post, 2);