From 235015910133aaa50f8398680357af4a92e12778 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sat, 27 Jun 2020 13:28:26 +0200 Subject: Cleanup: make it easier to check if a CPPType is a specific compile time type --- tests/gtests/functions/FN_cpp_type_test.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/gtests/functions/FN_cpp_type_test.cc b/tests/gtests/functions/FN_cpp_type_test.cc index 83dc327e381..33e6fbee7f6 100644 --- a/tests/gtests/functions/FN_cpp_type_test.cc +++ b/tests/gtests/functions/FN_cpp_type_test.cc @@ -84,6 +84,12 @@ TEST(cpp_type, Alignment) EXPECT_EQ(CPPType_TestType.alignment(), alignof(TestType)); } +TEST(cpp_type, Is) +{ + EXPECT_TRUE(CPPType_TestType.is()); + EXPECT_FALSE(CPPType_TestType.is()); +} + TEST(cpp_type, DefaultConstruction) { int buffer[10] = {0}; -- cgit v1.2.3