Skip to content

Commit 76bd444

Browse files
committed
Fix tests for clang-query completion
1 parent c6b2c17 commit 76bd444

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎clang-tools-extra/unittests/clang-query/QueryParserTest.cpp‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,12 @@ TEST_F(QueryParserTest, Complete) {
232232
EXPECT_EQ("dump", Comps[3].DisplayText);
233233

234234
Comps = QueryParser::complete("set traversal ", 14, QS);
235-
ASSERT_EQ(3u, Comps.size());
235+
ASSERT_EQ(2u, Comps.size());
236236

237237
EXPECT_EQ("AsIs ", Comps[0].TypedText);
238238
EXPECT_EQ("AsIs", Comps[0].DisplayText);
239-
EXPECT_EQ("IgnoreImplicitCastsAndParentheses ", Comps[1].TypedText);
240-
EXPECT_EQ("IgnoreImplicitCastsAndParentheses", Comps[1].DisplayText);
241-
EXPECT_EQ("IgnoreUnlessSpelledInSource ", Comps[2].TypedText);
242-
EXPECT_EQ("IgnoreUnlessSpelledInSource", Comps[2].DisplayText);
239+
EXPECT_EQ("IgnoreUnlessSpelledInSource ", Comps[1].TypedText);
240+
EXPECT_EQ("IgnoreUnlessSpelledInSource", Comps[1].DisplayText);
243241

244242
Comps = QueryParser::complete("match while", 11, QS);
245243
ASSERT_EQ(1u, Comps.size());

0 commit comments

Comments
 (0)