mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
In test_datalist_id_remove_multiple()
, verify that the data list contains 3 items before calling g_datalist_id_remove_multiple()
.
This commit is contained in:
parent
ad0f7199f1
commit
ac113c1ed2
@ -283,6 +283,10 @@ test_datalist_id_remove_multiple (void)
|
||||
g_datalist_id_set_data (&list, two, GINT_TO_POINTER (2));
|
||||
g_datalist_id_set_data (&list, three, GINT_TO_POINTER (3));
|
||||
|
||||
count = 0;
|
||||
g_datalist_foreach (&list, foreach_func, &count);
|
||||
g_assert_cmpint (count, ==, 3);
|
||||
|
||||
g_datalist_id_remove_multiple (&list, keys, G_N_ELEMENTS (keys));
|
||||
|
||||
count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user