[clang-tools-extra] r340759 - Cleanup after rL340729
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 27 10:26:43 PDT 2018
Author: omtcyfz
Date: Mon Aug 27 10:26:43 2018
New Revision: 340759
URL: http://llvm.org/viewvc/llvm-project?rev=340759&view=rev
Log:
Cleanup after rL340729
Modified:
clang-tools-extra/trunk/unittests/clangd/DexIndexTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/DexIndexTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/DexIndexTests.cpp?rev=340759&r1=340758&r2=340759&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/DexIndexTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/DexIndexTests.cpp Mon Aug 27 10:26:43 2018
@@ -335,35 +335,34 @@ trigramsAre(std::initializer_list<std::s
TEST(DexIndexTrigrams, IdentifierTrigrams) {
EXPECT_THAT(generateIdentifierTrigrams("X86"),
- trigramsAre({"x86", "x$$", "x8$", "$$$"}));
+ trigramsAre({"x86", "x$$", "x8$"}));
- EXPECT_THAT(generateIdentifierTrigrams("nl"),
- trigramsAre({"nl$", "n$$", "$$$"}));
+ EXPECT_THAT(generateIdentifierTrigrams("nl"), trigramsAre({"nl$", "n$$"}));
- EXPECT_THAT(generateIdentifierTrigrams("n"), trigramsAre({"n$$", "$$$"}));
+ EXPECT_THAT(generateIdentifierTrigrams("n"), trigramsAre({"n$$"}));
EXPECT_THAT(generateIdentifierTrigrams("clangd"),
- trigramsAre({"c$$", "cl$", "cla", "lan", "ang", "ngd", "$$$"}));
+ trigramsAre({"c$$", "cl$", "cla", "lan", "ang", "ngd"}));
EXPECT_THAT(generateIdentifierTrigrams("abc_def"),
trigramsAre({"a$$", "abc", "abd", "ade", "bcd", "bde", "cde",
- "def", "ab$", "ad$", "$$$"}));
+ "def", "ab$", "ad$"}));
EXPECT_THAT(generateIdentifierTrigrams("a_b_c_d_e_"),
trigramsAre({"a$$", "a_$", "a_b", "abc", "abd", "acd", "ace",
- "bcd", "bce", "bde", "cde", "ab$", "$$$"}));
+ "bcd", "bce", "bde", "cde", "ab$"}));
EXPECT_THAT(generateIdentifierTrigrams("unique_ptr"),
trigramsAre({"u$$", "uni", "unp", "upt", "niq", "nip", "npt",
"iqu", "iqp", "ipt", "que", "qup", "qpt", "uep",
- "ept", "ptr", "un$", "up$", "$$$"}));
+ "ept", "ptr", "un$", "up$"}));
- EXPECT_THAT(generateIdentifierTrigrams("TUDecl"),
- trigramsAre({"t$$", "tud", "tde", "ude", "dec", "ecl", "tu$",
- "td$", "$$$"}));
+ EXPECT_THAT(
+ generateIdentifierTrigrams("TUDecl"),
+ trigramsAre({"t$$", "tud", "tde", "ude", "dec", "ecl", "tu$", "td$"}));
EXPECT_THAT(generateIdentifierTrigrams("IsOK"),
- trigramsAre({"i$$", "iso", "iok", "sok", "is$", "io$", "$$$"}));
+ trigramsAre({"i$$", "iso", "iok", "sok", "is$", "io$"}));
EXPECT_THAT(
generateIdentifierTrigrams("abc_defGhij__klm"),
@@ -372,7 +371,7 @@ TEST(DexIndexTrigrams, IdentifierTrigram
"cde", "cdg", "cdk", "cgh", "cgk", "def", "deg", "dek",
"dgh", "dgk", "dkl", "efg", "efk", "egh", "egk", "ekl",
"fgh", "fgk", "fkl", "ghi", "ghk", "gkl", "hij", "hik",
- "hkl", "ijk", "ikl", "jkl", "klm", "ab$", "ad$", "$$$"}));
+ "hkl", "ijk", "ikl", "jkl", "klm", "ab$", "ad$"}));
}
TEST(DexIndexTrigrams, QueryTrigrams) {
More information about the cfe-commits
mailing list