Browse Source

test: std::strcmp ... :man_facepalming:

Michele Caini 5 năm trước cách đây
mục cha
commit
453f1c6edc

+ 2 - 2
test/entt/core/any.cpp

@@ -973,11 +973,11 @@ TEST_F(Any, DeducedArrayType) {
 
 
     ASSERT_TRUE(any);
     ASSERT_TRUE(any);
     ASSERT_EQ(any.type(), entt::type_id<const char *>());
     ASSERT_EQ(any.type(), entt::type_id<const char *>());
-    ASSERT_EQ((std::strcmp("array of char", entt::any_cast<const char *>(any))), 0);
+    ASSERT_EQ((strcmp("array of char", entt::any_cast<const char *>(any))), 0);
 
 
     any = "another array of char";
     any = "another array of char";
 
 
     ASSERT_TRUE(any);
     ASSERT_TRUE(any);
     ASSERT_EQ(any.type(), entt::type_id<const char *>());
     ASSERT_EQ(any.type(), entt::type_id<const char *>());
-    ASSERT_EQ((std::strcmp("another array of char", entt::any_cast<const char *>(any))), 0);
+    ASSERT_EQ((strcmp("another array of char", entt::any_cast<const char *>(any))), 0);
 }
 }

+ 1 - 1
test/entt/meta/meta_prop.cpp

@@ -67,7 +67,7 @@ TEST_F(MetaProp, DeducedArrayType) {
     ASSERT_TRUE(prop);
     ASSERT_TRUE(prop);
     ASSERT_EQ(prop.key(), "char[]"_hs);
     ASSERT_EQ(prop.key(), "char[]"_hs);
     ASSERT_EQ(prop.value().type(), entt::resolve<const char *>());
     ASSERT_EQ(prop.value().type(), entt::resolve<const char *>());
-    ASSERT_EQ(std::strcmp(prop.value().cast<const char *>(), "char[]"), 0);
+    ASSERT_EQ(strcmp(prop.value().cast<const char *>(), "char[]"), 0);
 }
 }
 
 
 TEST_F(MetaProp, ReRegistration) {
 TEST_F(MetaProp, ReRegistration) {