Skip to content

Commit

Permalink
Use non-zero constant in TestFixedEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Seredin committed Aug 29, 2019
1 parent 471dfa4 commit 93d1d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/format-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1906,9 +1906,9 @@ TEST(FormatTest, FormatterNotSpecialized) {
}

#if FMT_HAS_FEATURE(cxx_strong_enums)
enum TestFixedEnum : short { B };
enum TestFixedEnum : short { B = 1 };

TEST(FormatTest, FixedEnum) { EXPECT_EQ("0", fmt::format("{}", B)); }
TEST(FormatTest, FixedEnum) { EXPECT_EQ("1", fmt::format("{}", B)); }
#endif

using buffer_range = fmt::buffer_range<char>;
Expand Down

0 comments on commit 93d1d15

Please sign in to comment.