diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index d6deafe1093c..c4066253fd1a 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -7129,13 +7129,10 @@ TEST_F(FormatTest, BreakConstructorInitializersAfterColon) { " bbbbbbbbbbbbbbbbbbbbbbbb(b) {}", OnePerLine); - EXPECT_EQ("Constructor() :\n" - " // Comment forcing unwanted break.\n" - " aaaa(aaaa) {}", - format("Constructor() :\n" - " // Comment forcing unwanted break.\n" - " aaaa(aaaa) {}", - Style)); + verifyFormat("Constructor() :\n" + " // Comment forcing unwanted break.\n" + " aaaa(aaaa) {}", + Style); Style.ColumnLimit = 0; verifyFormat("SomeClass::Constructor() :\n"