Autocomplete: added free function

Fixed tests
This commit is contained in:
James Booth
2013-01-11 00:17:18 +00:00
parent ce8faa8d34
commit 89967905db
10 changed files with 38 additions and 21 deletions

View File

@@ -191,7 +191,7 @@ static void test_status_when_no_value(void)
static void update_show(void)
{
contact_list_add("James", NULL, "away", NULL, NULL, FALSE);
contact_list_update_contact("James", "dnd", NULL);
contact_list_update_contact("James", "dnd", NULL, NULL);
GSList *list = get_contact_list();
assert_int_equals(1, g_slist_length(list));
@@ -203,7 +203,7 @@ static void update_show(void)
static void set_show_to_null(void)
{
contact_list_add("James", NULL, "away", NULL, NULL, FALSE);
contact_list_update_contact("James", NULL, NULL);
contact_list_update_contact("James", NULL, NULL, NULL);
GSList *list = get_contact_list();
assert_int_equals(1, g_slist_length(list));
@@ -215,7 +215,7 @@ static void set_show_to_null(void)
static void update_status(void)
{
contact_list_add("James", NULL, NULL, "I'm not here right now", NULL, FALSE);
contact_list_update_contact("James", NULL, "Gone to lunch");
contact_list_update_contact("James", NULL, "Gone to lunch", NULL);
GSList *list = get_contact_list();
assert_int_equals(1, g_slist_length(list));
@@ -227,7 +227,7 @@ static void update_status(void)
static void set_status_to_null(void)
{
contact_list_add("James", NULL, NULL, "Gone to lunch", NULL, FALSE);
contact_list_update_contact("James", NULL, NULL);
contact_list_update_contact("James", NULL, NULL, NULL);
GSList *list = get_contact_list();
assert_int_equals(1, g_slist_length(list));