diff options
Diffstat (limited to 'tests/gtests/functions/FN_cpp_type_test.cc')
-rw-r--r-- | tests/gtests/functions/FN_cpp_type_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/gtests/functions/FN_cpp_type_test.cc b/tests/gtests/functions/FN_cpp_type_test.cc index da5ce3416ce..78731f9c987 100644 --- a/tests/gtests/functions/FN_cpp_type_test.cc +++ b/tests/gtests/functions/FN_cpp_type_test.cc @@ -3,7 +3,6 @@ #include "testing/testing.h" #include "FN_cpp_type.hh" -#include "FN_cpp_types.hh" namespace blender::fn { @@ -76,6 +75,8 @@ struct TestType { MAKE_CPP_TYPE(TestType, TestType) +const CPPType &CPPType_TestType = CPPType::get<TestType>(); + TEST(cpp_type, Size) { EXPECT_EQ(CPPType_TestType.size(), sizeof(TestType)); @@ -312,7 +313,7 @@ TEST(cpp_type, DebugPrint) { int value = 42; std::stringstream ss; - CPPType_int32.debug_print((void *)&value, ss); + CPPType::get<int32_t>().debug_print((void *)&value, ss); std::string text = ss.str(); EXPECT_EQ(text, "42"); } |