Fix tests for clang-query completion

This commit is contained in:
Stephen Kelly 2020-11-23 15:22:03 +00:00
parent c6b2c17e9c
commit 76bd4444e3

View File

@ -232,14 +232,12 @@ TEST_F(QueryParserTest, Complete) {
EXPECT_EQ("dump", Comps[3].DisplayText);
Comps = QueryParser::complete("set traversal ", 14, QS);
ASSERT_EQ(3u, Comps.size());
ASSERT_EQ(2u, Comps.size());
EXPECT_EQ("AsIs ", Comps[0].TypedText);
EXPECT_EQ("AsIs", Comps[0].DisplayText);
EXPECT_EQ("IgnoreImplicitCastsAndParentheses ", Comps[1].TypedText);
EXPECT_EQ("IgnoreImplicitCastsAndParentheses", Comps[1].DisplayText);
EXPECT_EQ("IgnoreUnlessSpelledInSource ", Comps[2].TypedText);
EXPECT_EQ("IgnoreUnlessSpelledInSource", Comps[2].DisplayText);
EXPECT_EQ("IgnoreUnlessSpelledInSource ", Comps[1].TypedText);
EXPECT_EQ("IgnoreUnlessSpelledInSource", Comps[1].DisplayText);
Comps = QueryParser::complete("match while", 11, QS);
ASSERT_EQ(1u, Comps.size());