[pango/test-attr-list-equal: 2/2] Add more pango_attr_list_equal tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/test-attr-list-equal: 2/2] Add more pango_attr_list_equal tests
- Date: Thu, 11 Jun 2020 12:33:41 +0000 (UTC)
commit 6e9f21001600a25810d8da7eca784662aaadbd22
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 11 08:32:37 2020 -0400
Add more pango_attr_list_equal tests
Check with NULL and empty lists.
tests/testattributes.c | 6 ++++++
1 file changed, 6 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]