From 233bbb7762deb04c20b689a07b721d6ee7678708 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 26 Apr 2020 15:37:36 +0100 Subject: Add test case for external use of enum lookups Breaks with Clang, that's kinda the point --- slicer/test/serializers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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::lookup(TestModule::SomeNumbers::One)); + BOOST_CHECK_EQUAL(TestModule::SomeNumbers::One, Slicer::ModelPartForEnum::lookup("One")); +} + -- cgit v1.2.3