Skip to content

Commit c79e18d

Browse files
committed
[clang-format] Expect instead of setting the same value in tests. NFC.
1 parent acc7a7f commit c79e18d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/unittests/Format/FormatTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,8 @@ TEST_F(FormatTest, CaseRanges) {
27672767

27682768
TEST_F(FormatTest, ShortEnums) {
27692769
FormatStyle Style = getLLVMStyle();
2770-
Style.AllowShortEnumsOnASingleLine = true;
2770+
EXPECT_TRUE(Style.AllowShortEnumsOnASingleLine);
2771+
EXPECT_FALSE(Style.BraceWrapping.AfterEnum);
27712772
verifyFormat("enum { A, B, C } ShortEnum1, ShortEnum2;", Style);
27722773
verifyFormat("typedef enum { A, B, C } ShortEnum1, ShortEnum2;", Style);
27732774
Style.AllowShortEnumsOnASingleLine = false;

0 commit comments

Comments
 (0)