summaryrefslogtreecommitdiff
path: root/tests/test-break.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-04 20:35:18 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-05 15:14:33 -0400
commitc8dd8ae1eed16fa35d0cbff7906589932cd31967 (patch)
tree9e0353267bac23666950e414839a33f4360b6584 /tests/test-break.c
parent9552816ddad6b1d9f261e4e899c4813205a034f2 (diff)
downloadpango-c8dd8ae1eed16fa35d0cbff7906589932cd31967.tar.gz
tests: Avoid bidi in test output
When rendering the text char-by-char, use directional controls to avoid any bidi reordering. Update affected tests.
Diffstat (limited to 'tests/test-break.c')
-rw-r--r--tests/test-break.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-break.c b/tests/test-break.c
index 66c207a5..d59971a0 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -219,7 +219,9 @@ test_file (const gchar *filename, GString *string)
!(g_unichar_type (ch) == G_UNICODE_LINE_SEPARATOR ||
g_unichar_type (ch) == G_UNICODE_PARAGRAPH_SEPARATOR))
{
+ g_string_append_unichar (string, 0x2066); // LRI
g_string_append_unichar (string, ch);
+ g_string_append_unichar (string, 0x2069); // PDI
g_string_append (s1, " ");
g_string_append (s2, " ");
g_string_append (s3, " ");