diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-27 14:28:26 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-27 14:28:46 +0300 |
commit | 235015910133aaa50f8398680357af4a92e12778 (patch) | |
tree | 98756bfb123234bf68c3d5546e63668813f408c8 /tests/gtests/functions | |
parent | 563670ff9e7421abc87095dab78e89ef23499253 (diff) |
Cleanup: make it easier to check if a CPPType is a specific compile time type
Diffstat (limited to 'tests/gtests/functions')
-rw-r--r-- | tests/gtests/functions/FN_cpp_type_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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<TestType>()); + EXPECT_FALSE(CPPType_TestType.is<int>()); +} + TEST(cpp_type, DefaultConstruction) { int buffer[10] = {0}; |