test: suppress some warnings here and there

This commit is contained in:
Michele Caini
2020-10-15 15:06:57 +02:00
parent d8ff4285da
commit 86c1dd7f32
7 changed files with 8 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ TEST(Lib, Meta) {
ASSERT_TRUE(pos && vel);
ASSERT_EQ(pos.type().data("x"_hs).type(), entt::resolve<int>());
ASSERT_TRUE(pos.type().data("y"_hs).get(pos).try_cast<int>());
ASSERT_NE(pos.type().data("y"_hs).get(pos).try_cast<int>(), nullptr);
ASSERT_EQ(pos.type().data("x"_hs).get(pos).cast<int>(), 42);
ASSERT_EQ(pos.type().data("y"_hs).get(pos).cast<int>(), 3);