Author: Emilia Kond
Date: 2023-06-26T12:27:57+03:00
New Revision: 6e39b0ddf08ab5cd44fed2d16e9669d64aa733ef

URL: 
https://github.com/llvm/llvm-project/commit/6e39b0ddf08ab5cd44fed2d16e9669d64aa733ef
DIFF: 
https://github.com/llvm/llvm-project/commit/6e39b0ddf08ab5cd44fed2d16e9669d64aa733ef.diff

LOG: [clang-format][NFC] Use correct test method for new tests

7a38b3bfeb56 landed after 20b4df1ed611, which refactored how tests are
structured in FormatTest. This quick fix-up unifies the tests added in
7a38b3bfeb56 to comply with this new format.

Added: 
    

Modified: 
    clang/unittests/Format/FormatTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Format/FormatTest.cpp 
b/clang/unittests/Format/FormatTest.cpp
index 7c0645c7cf01b..8338799dc2ba6 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -4623,13 +4623,13 @@ TEST_F(FormatTest, FormatsInlineASM) {
 
   Style.BreakBeforeInlineASMColon = FormatStyle::BBIAS_OnlyMultiline;
   verifyFormat(Code1, Style);
-  EXPECT_EQ(Code2, format(Code2, Style));
-  EXPECT_EQ(Code3, format(Code3, Style));
+  verifyNoChange(Code2, Style);
+  verifyNoChange(Code3, Style);
 
   Style.BreakBeforeInlineASMColon = FormatStyle::BBIAS_Always;
-  EXPECT_EQ(Code2, format(Code1, Style));
-  EXPECT_EQ(Code2, format(Code2, Style));
-  EXPECT_EQ(Code2, format(Code3, Style));
+  verifyFormat(Code2, Code1, Style);
+  verifyNoChange(Code2, Style);
+  verifyFormat(Code2, Code3, Style);
 }
 
 TEST_F(FormatTest, FormatTryCatch) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to