Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-06-27 14:28:26 +0300
committerJacques Lucke <jacques@blender.org>2020-06-27 14:28:46 +0300
commit235015910133aaa50f8398680357af4a92e12778 (patch)
tree98756bfb123234bf68c3d5546e63668813f408c8 /tests
parent563670ff9e7421abc87095dab78e89ef23499253 (diff)
Cleanup: make it easier to check if a CPPType is a specific compile time type
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/functions/FN_cpp_type_test.cc6
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};