Started autocomplete contact

Currently autocompletes first match
This commit is contained in:
James Booth
2012-03-10 22:32:07 +00:00
parent f23f768d54
commit f928fb3625
2 changed files with 30 additions and 1 deletions

View File

@@ -353,6 +353,12 @@ static void find_returns_null(void)
assert_is_null(result);
}
static void find_on_empty_returns_null(void)
{
char *result = find_contact("James");
assert_is_null(result);
}
void register_contact_list_tests(void)
{
TEST_MODULE("contact_list tests");
@@ -387,4 +393,5 @@ void register_contact_list_tests(void)
TEST(find_second_exists);
TEST(find_third_exists);
TEST(find_returns_null);
TEST(find_on_empty_returns_null);
}