summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-09 12:10:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-09 12:16:14 -0400
commitcba71eea549a65aa229559206f9204665510d0aa (patch)
tree655bdf9275c22807dc33ab0366bc8efc6d1fb6de /tests
parent77146b66f2307180934ef8d327aaab0bfe69bb35 (diff)
downloadpango-cba71eea549a65aa229559206f9204665510d0aa.tar.gz
Add a few missing chars to pango_is_zero_widthmissing-zerowidth-chars
The documentation for this function states that all bidi control chars are zero width, but it was missing the Isolate ones. Add them. Updated tests included.
Diffstat (limited to 'tests')
-rw-r--r--tests/testmisc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testmisc.c b/tests/testmisc.c
index c0f8c426..fe2e9075 100644
--- a/tests/testmisc.c
+++ b/tests/testmisc.c
@@ -178,6 +178,17 @@ test_is_zero_width (void)
g_assert_true (pango_is_zero_width (0x034f));
g_assert_false (pango_is_zero_width ('a'));
g_assert_false (pango_is_zero_width ('c'));
+
+ g_assert_true (pango_is_zero_width (0x2066));
+ g_assert_true (pango_is_zero_width (0x2067));
+ g_assert_true (pango_is_zero_width (0x2068));
+ g_assert_true (pango_is_zero_width (0x2069));
+
+ g_assert_true (pango_is_zero_width (0x202a));
+ g_assert_true (pango_is_zero_width (0x202b));
+ g_assert_true (pango_is_zero_width (0x202c));
+ g_assert_true (pango_is_zero_width (0x202d));
+ g_assert_true (pango_is_zero_width (0x202e));
}
static void