diff options
-rw-r--r-- | tests/testattributes.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testattributes.c b/tests/testattributes.c index eaca6663..6b5e849b 100644 --- a/tests/testattributes.c +++ b/tests/testattributes.c @@ -358,6 +358,15 @@ test_iter (void) PangoAttrIterator *copy; gint start, end; + /* Empty list */ + list = pango_attr_list_new (); + iter = pango_attr_list_get_iterator (list); + + g_assert_false (pango_attr_iterator_next (iter)); + g_assert_null (pango_attr_iterator_get_attrs (iter)); + pango_attr_iterator_destroy (iter); + pango_attr_list_unref (list); + list = pango_attr_list_new (); attr = pango_attr_size_new (10); pango_attr_list_insert (list, attr); |