summaryrefslogtreecommitdiff
path: root/tests/testboundaries.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-10-03 21:28:54 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-03 21:28:54 +0000
commit6b7789004193dae1c6033da88799372bf8b67282 (patch)
tree84e5ea9d3539dacc1fe9ec00b78521da92d81324 /tests/testboundaries.c
parent07458e1e02c9a2b935d2dae3c2f9b59b330a77f5 (diff)
downloadpango-6b7789004193dae1c6033da88799372bf8b67282.tar.gz
new program to dump logical attrs to stdout
2001-10-03 Havoc Pennington <hp@redhat.com> * tests/dump-boundaries.c: new program to dump logical attrs to stdout * tests/testboundaries.c (check_invariants): oops, fix for pango_get_log_attrs() change
Diffstat (limited to 'tests/testboundaries.c')
-rw-r--r--tests/testboundaries.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index a405bd04..fb45c4d3 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -316,13 +316,14 @@ check_invariants (const char *text)
fail ("Invalid UTF-8 in test text");
len = g_utf8_strlen (text, -1);
- attrs = g_new0 (PangoLogAttr, len);
+ attrs = g_new0 (PangoLogAttr, len + 1);
pango_get_log_attrs (text,
-1,
0,
- "C",
- attrs);
+ pango_language_from_string ("C"),
+ attrs,
+ len + 1);
check_line_invariants (text, attrs);
check_sentence_invariants (text, attrs);