diff options
Diffstat (limited to 'tests/testattributes.c')
-rw-r--r-- | tests/testattributes.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/testattributes.c b/tests/testattributes.c index 8022498a..d6c8c87c 100644 --- a/tests/testattributes.c +++ b/tests/testattributes.c @@ -627,6 +627,12 @@ test_list_equal (void) list1 = pango_attr_list_new (); list2 = pango_attr_list_new (); + g_assert_true (pango_attr_list_equal (NULL, NULL)); + g_assert_false (pango_attr_list_equal (list1, NULL)); + g_assert_false (pango_attr_list_equal (NULL, list1)); + g_assert_true (pango_attr_list_equal (list1, list1)); + g_assert_true (pango_attr_list_equal (list1, list2)); + attr = pango_attr_size_new (10 * PANGO_SCALE); attr->start_index = 0; attr->end_index = 7; @@ -837,12 +843,12 @@ main (int argc, char *argv[]) g_test_add_func ("/attributes/list/filter", test_list_filter); g_test_add_func ("/attributes/list/update", test_list_update); g_test_add_func ("/attributes/list/equal", test_list_equal); + g_test_add_func ("/attributes/list/insert", test_insert); + g_test_add_func ("/attributes/list/merge", test_merge); g_test_add_func ("/attributes/iter/basic", test_iter); g_test_add_func ("/attributes/iter/get", test_iter_get); g_test_add_func ("/attributes/iter/get_font", test_iter_get_font); g_test_add_func ("/attributes/iter/get_attrs", test_iter_get_attrs); - g_test_add_func ("/attributes/insert", test_insert); - g_test_add_func ("/attributes/merge", test_merge); return g_test_run (); } |