FixedEnum -> StrongEnum and make it a regression test

This commit is contained in:
Victor Zverovich
2019-08-31 06:34:32 -07:00
parent 200ee6f108
commit c76957565c
2 changed files with 6 additions and 3 deletions

View File

@@ -1906,9 +1906,11 @@ TEST(FormatTest, FormatterNotSpecialized) {
}
#if FMT_HAS_FEATURE(cxx_strong_enums)
enum TestFixedEnum : short { B = 1 };
enum big_enum : unsigned long long { big_enum_value = 5000000000ULL };
TEST(FormatTest, FixedEnum) { EXPECT_EQ("1", fmt::format("{}", B)); }
TEST(FormatTest, StrongEnum) {
EXPECT_EQ("5000000000", fmt::format("{}", big_enum_value));
}
#endif
using buffer_range = fmt::buffer_range<char>;