summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/test/serializers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/slicer/test/serializers.cpp b/slicer/test/serializers.cpp
index 56fa5ac..0b483b0 100644
--- a/slicer/test/serializers.cpp
+++ b/slicer/test/serializers.cpp
@@ -681,3 +681,9 @@ BOOST_AUTO_TEST_CASE(case_less_test)
BOOST_AUTO_TEST_SUITE_END();
+BOOST_AUTO_TEST_CASE(enum_lookups)
+{
+ BOOST_CHECK_EQUAL("One", Slicer::ModelPartForEnum<TestModule::SomeNumbers>::lookup(TestModule::SomeNumbers::One));
+ BOOST_CHECK_EQUAL(TestModule::SomeNumbers::One, Slicer::ModelPartForEnum<TestModule::SomeNumbers>::lookup("One"));
+}
+