Skip to content

Commit fdfefdb

Browse files
committed
Enhance the added test case
1 parent d088a50 commit fdfefdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/unittests/Format/TokenAnnotatorTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,11 +2258,11 @@ TEST_F(TokenAnnotatorTest, UnderstandsFunctionDeclarationNames) {
22582258
EXPECT_TOKEN(Tokens[2], tok::l_paren, TT_FunctionDeclarationLParen);
22592259

22602260
Tokens = annotate("#define FUNC(foo, bar) \\\n"
2261-
" auto foo##bar() -> Type {}");
2262-
ASSERT_EQ(Tokens.size(), 19u) << Tokens;
2261+
" auto foo##bar##baz() -> Type {}");
2262+
ASSERT_EQ(Tokens.size(), 21u) << Tokens;
22632263
EXPECT_TOKEN(Tokens[9], tok::identifier, TT_FunctionDeclarationName);
2264-
EXPECT_TOKEN(Tokens[12], tok::l_paren, TT_FunctionDeclarationLParen);
2265-
EXPECT_TOKEN(Tokens[14], tok::arrow, TT_TrailingReturnArrow);
2264+
EXPECT_TOKEN(Tokens[14], tok::l_paren, TT_FunctionDeclarationLParen);
2265+
EXPECT_TOKEN(Tokens[16], tok::arrow, TT_TrailingReturnArrow);
22662266

22672267
Tokens = annotate("int iso_time(time_t);");
22682268
ASSERT_EQ(Tokens.size(), 7u) << Tokens;

0 commit comments

Comments
 (0)