diff options
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 4ef4c9a..e36a267 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -2767,7 +2767,8 @@ TEST_F(FormatTest, CaseRanges) { TEST_F(FormatTest, ShortEnums) { FormatStyle Style = getLLVMStyle(); - Style.AllowShortEnumsOnASingleLine = true; + EXPECT_TRUE(Style.AllowShortEnumsOnASingleLine); + EXPECT_FALSE(Style.BraceWrapping.AfterEnum); verifyFormat("enum { A, B, C } ShortEnum1, ShortEnum2;", Style); verifyFormat("typedef enum { A, B, C } ShortEnum1, ShortEnum2;", Style); Style.AllowShortEnumsOnASingleLine = false; |