Lines Matching refs:find_closest_string
134 find_closest_string (const char *target, in find_closest_string() function
191 ASSERT_EQ (NULL, find_closest_string ("", &candidates)); in test_find_closest_string()
198 ASSERT_STREQ ("apple", find_closest_string ("app", &candidates)); in test_find_closest_string()
199 ASSERT_STREQ ("banana", find_closest_string ("banyan", &candidates)); in test_find_closest_string()
200 ASSERT_STREQ ("cherry", find_closest_string ("berry", &candidates)); in test_find_closest_string()
201 ASSERT_EQ (NULL, find_closest_string ("not like the others", &candidates)); in test_find_closest_string()
209 ASSERT_STREQ ("apple", find_closest_string ("app", &candidates)); in test_find_closest_string()
210 ASSERT_STREQ ("banana", find_closest_string ("banyan", &candidates)); in test_find_closest_string()
211 ASSERT_STREQ ("cherry", find_closest_string ("berry", &candidates)); in test_find_closest_string()
212 ASSERT_EQ (NULL, find_closest_string ("not like the others", &candidates)); in test_find_closest_string()
217 ASSERT_EQ (NULL, find_closest_string ("banana", &candidates)); in test_find_closest_string()