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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits