[clang] c79e18d - [clang-format] Expect instead of setting the same value in tests. NFC.
Marek Kurdej via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 18 07:02:12 PDT 2022
Author: Marek Kurdej
Date: 2022-03-18T15:01:41+01:00
New Revision: c79e18da4f65c43bb8d94e95961e87e66d67b65a
URL: https://github.com/llvm/llvm-project/commit/c79e18da4f65c43bb8d94e95961e87e66d67b65a
DIFF: https://github.com/llvm/llvm-project/commit/c79e18da4f65c43bb8d94e95961e87e66d67b65a.diff
LOG: [clang-format] Expect instead of setting the same value in tests. NFC.
Added:
Modified:
clang/unittests/Format/FormatTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 4ef4c9a8612a7..e36a267c01f4b 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;
More information about the cfe-commits
mailing list