From 453f1c6edcd4095af52bebdd71ddf2ea27988354 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 6 Apr 2021 16:16:52 +0200 Subject: [PATCH] test: std::strcmp ... :man_facepalming: --- test/entt/core/any.cpp | 4 ++-- test/entt/meta/meta_prop.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/entt/core/any.cpp b/test/entt/core/any.cpp index 696d6b819..f0528a6cc 100644 --- a/test/entt/core/any.cpp +++ b/test/entt/core/any.cpp @@ -973,11 +973,11 @@ TEST_F(Any, DeducedArrayType) { ASSERT_TRUE(any); ASSERT_EQ(any.type(), entt::type_id()); - ASSERT_EQ((std::strcmp("array of char", entt::any_cast(any))), 0); + ASSERT_EQ((strcmp("array of char", entt::any_cast(any))), 0); any = "another array of char"; ASSERT_TRUE(any); ASSERT_EQ(any.type(), entt::type_id()); - ASSERT_EQ((std::strcmp("another array of char", entt::any_cast(any))), 0); + ASSERT_EQ((strcmp("another array of char", entt::any_cast(any))), 0); } diff --git a/test/entt/meta/meta_prop.cpp b/test/entt/meta/meta_prop.cpp index 2bbbe37e8..1028298b0 100644 --- a/test/entt/meta/meta_prop.cpp +++ b/test/entt/meta/meta_prop.cpp @@ -67,7 +67,7 @@ TEST_F(MetaProp, DeducedArrayType) { ASSERT_TRUE(prop); ASSERT_EQ(prop.key(), "char[]"_hs); ASSERT_EQ(prop.value().type(), entt::resolve()); - ASSERT_EQ(std::strcmp(prop.value().cast(), "char[]"), 0); + ASSERT_EQ(strcmp(prop.value().cast(), "char[]"), 0); } TEST_F(MetaProp, ReRegistration) {