summaryrefslogtreecommitdiff
path: root/tests/testattributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-11 08:32:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-11 08:32:37 -0400
commit6e9f21001600a25810d8da7eca784662aaadbd22 (patch)
tree64e2bea748861f7d50cd660d50118ce472561ae3 /tests/testattributes.c
parent226e03a52ed41c05385978e9000087988c1db10d (diff)
downloadpango-6e9f21001600a25810d8da7eca784662aaadbd22.tar.gz
Add more pango_attr_list_equal tests
Check with NULL and empty lists.
Diffstat (limited to 'tests/testattributes.c')
-rw-r--r--tests/testattributes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testattributes.c b/tests/testattributes.c
index 450857d1..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;