Lines Matching refs:EditDistance
20 EXPECT_EQ(5, EditDistance("", "ninja")); in TEST()
21 EXPECT_EQ(5, EditDistance("ninja", "")); in TEST()
22 EXPECT_EQ(0, EditDistance("", "")); in TEST()
29 EditDistance("abcdefghijklmnop", "ponmlkjihgfedcba", in TEST()
36 EXPECT_EQ(1, EditDistance("ninja", "njnja", allow_replacements)); in TEST()
37 EXPECT_EQ(1, EditDistance("njnja", "ninja", allow_replacements)); in TEST()
40 EXPECT_EQ(2, EditDistance("ninja", "njnja", allow_replacements)); in TEST()
41 EXPECT_EQ(2, EditDistance("njnja", "ninja", allow_replacements)); in TEST()
45 EXPECT_EQ(0, EditDistance("browser_tests", "browser_tests")); in TEST()
46 EXPECT_EQ(1, EditDistance("browser_test", "browser_tests")); in TEST()
47 EXPECT_EQ(1, EditDistance("browser_tests", "browser_test")); in TEST()