diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-10 04:23:05 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-10 04:23:05 +0000 |
commit | 86569043ad626edf9c8d856376696b63f6094060 (patch) | |
tree | e11be4d0f4944f044598f29b6e31893ad6088dd8 /tests | |
parent | 9bca506cfbf0b969f2d1b086448916c91261c22a (diff) | |
parent | d04872ad221b56f80ff20503816fde4dd10636c6 (diff) | |
download | pango-86569043ad626edf9c8d856376696b63f6094060.tar.gz |
Merge branch 'attrlist-splice' into 'main'
Clarify pango_attr_list_splice docs
Closes #653
See merge request GNOME/pango!574
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testattributes.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testattributes.c b/tests/testattributes.c index cd70edc8..d396269f 100644 --- a/tests/testattributes.c +++ b/tests/testattributes.c @@ -1338,6 +1338,23 @@ test_iter_epsilon_zero (void) g_string_free (s, TRUE); } +static void +test_gnumeric_splice (void) +{ + PangoAttrList *list, *list2; + + list = pango_attr_list_from_string ("0 -1 font-desc \"Sans 10\"\n"); + list2 = pango_attr_list_from_string ("1 2 weight bold\n"); + + pango_attr_list_splice (list, list2, 0, 0); + + assert_attr_list (list, "0 4294967295 font-desc \"Sans 10\"\n" + "1 2 weight bold\n"); + + pango_attr_list_unref (list); + pango_attr_list_unref (list2); +} + int main (int argc, char *argv[]) { @@ -1377,6 +1394,7 @@ main (int argc, char *argv[]) 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/iter/epsilon_zero", test_iter_epsilon_zero); + g_test_add_func ("/attributes/gnumeric-splice", test_gnumeric_splice); return g_test_run (); } |