10 #include <gtest/gtest.h> 51 EXPECT_EQ(TEnumType<Directions>::name2value(
"East"),
East);
53 EXPECT_THROW(TEnumType<TestColors>::name2value(
"Violet"), std::exception);
64 EXPECT_EQ(TEnumType<Directions>::value2name(
East),
"East");
67 TEnumType<TestColors>::value2name(static_cast<TestColors>(5)),
#define MRPT_ENUM_TYPE_END()
TEST(TEnumType, str2value)
MRPT_FILL_ENUM_MEMBER(TestColors, Black)
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)