[clang-format][NFC] Use correct test method for new tests
authorEmilia Kond <emilia@rymiel.space>
Mon, 26 Jun 2023 09:26:03 +0000 (12:26 +0300)
committerEmilia Kond <emilia@rymiel.space>
Mon, 26 Jun 2023 09:27:57 +0000 (12:27 +0300)
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.

clang/unittests/Format/FormatTest.cpp

index 7c0645c..8338799 100644 (file)
@@ -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) {