aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index ce81bd5..1df7859 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -116,12 +116,10 @@ TEST_F(FormatTestJS, JSDocComments) {
" */",
getGoogleJSStyleWithColumns(20)));
// Don't break the first line of a short single line jsdoc comment.
- EXPECT_EQ("/** jsdoc line 1 */",
- format("/** jsdoc line 1 */", getGoogleJSStyleWithColumns(20)));
+ verifyFormat("/** jsdoc line 1 */", getGoogleJSStyleWithColumns(20));
// Don't break the first line of a single line jsdoc comment if it just fits
// the column limit.
- EXPECT_EQ("/** jsdoc line 12 */",
- format("/** jsdoc line 12 */", getGoogleJSStyleWithColumns(20)));
+ verifyFormat("/** jsdoc line 12 */", getGoogleJSStyleWithColumns(20));
// Don't break after '/**' and before '*/' if there is no space between
// '/**' and the content.
EXPECT_EQ(
@@ -183,8 +181,7 @@ TEST_F(FormatTestJS, JSDocComments) {
getGoogleJSStyleWithColumns(20)));
// Don't break the first line of a single line short jsdoc comment pragma.
- EXPECT_EQ("/** @returns j */",
- format("/** @returns j */", getGoogleJSStyleWithColumns(20)));
+ verifyFormat("/** @returns j */", getGoogleJSStyleWithColumns(20));
// Break a single line long jsdoc comment pragma.
EXPECT_EQ("/**\n"