[glib: 3/12] In `test_datalist_id_remove_multiple()`, verify that the data list contains 3 items before calling `
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/12] In `test_datalist_id_remove_multiple()`, verify that the data list contains 3 items before calling `
- Date: Thu, 7 Jul 2022 11:52:20 +0000 (UTC)
commit ac113c1ed23bb02b4dbd1256cb01100336191ccf
Author: Peter Bloomfield <peterbloomfield bellsouth net>
Date: Thu Jun 23 21:30:51 2022 +0000
In `test_datalist_id_remove_multiple()`, verify that the data list contains 3 items before calling
`g_datalist_id_remove_multiple()`.
glib/tests/dataset.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/glib/tests/dataset.c b/glib/tests/dataset.c
index 1d6feea82d..12eb33ab3e 100644
--- a/glib/tests/dataset.c
+++ b/glib/tests/dataset.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]