diff options
author | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-03-18 15:01:18 +0100 |
---|---|---|
committer | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-03-18 15:01:41 +0100 |
commit | c79e18da4f65c43bb8d94e95961e87e66d67b65a (patch) | |
tree | 5bdf2da77a2c50b743b24e0e5e4240193f68a6dd | |
parent | acc7a7f9a17f683b1bbf0a4913ebadb926e1f71b (diff) | |
download | llvm-c79e18da4f65c43bb8d94e95961e87e66d67b65a.zip llvm-c79e18da4f65c43bb8d94e95961e87e66d67b65a.tar.gz llvm-c79e18da4f65c43bb8d94e95961e87e66d67b65a.tar.bz2 |
[clang-format] Expect instead of setting the same value in tests. NFC.
-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; |