summaryrefslogtreecommitdiff
path: root/tests/testboundaries_ucd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testboundaries_ucd.c')
-rw-r--r--tests/testboundaries_ucd.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/tests/testboundaries_ucd.c b/tests/testboundaries_ucd.c
index 08bd2ae7..53f7b4cb 100644
--- a/tests/testboundaries_ucd.c
+++ b/tests/testboundaries_ucd.c
@@ -216,8 +216,7 @@ make_test_string (gchar *string,
static void
do_test (const gchar *filename,
- AttrBits bits,
- gboolean fixup_broken_linebreaktest)
+ AttrBits bits)
{
GIOChannel *channel;
GIOStatus status;
@@ -280,12 +279,6 @@ do_test (const gchar *filename,
PangoLogAttr *attrs = g_new (PangoLogAttr, num_attrs);
pango_get_log_attrs (string, -1, 0, pango_language_from_string ("C"), attrs, num_attrs);
- /* LineBreakTest.txt from Unicode 5.1.0 has this bug that it says
- * breaking is allowed at the beginning of the strings, while the
- * algorithm says it's not. Fix that up. */
- if (fixup_broken_linebreaktest)
- memset (expected_attrs, 0, sizeof (expected_attrs[0]));
-
if (! attrs_equal (attrs, expected_attrs, num_attrs, bits))
{
gchar *str = make_test_string (string, attrs, bits);
@@ -339,7 +332,7 @@ test_grapheme_break (void)
#endif
bits.bits = 0;
bits.attr.is_cursor_position = 1;
- do_test (filename, bits, FALSE);
+ do_test (filename, bits);
}
static void
@@ -355,7 +348,7 @@ test_emoji_break (void)
#endif
bits.bits = 0;
bits.attr.is_cursor_position = 1;
- do_test (filename, bits, FALSE);
+ do_test (filename, bits);
}
static void
@@ -371,7 +364,7 @@ test_char_break (void)
#endif
bits.bits = 0;
bits.attr.is_char_break = 1;
- do_test (filename, bits, FALSE);
+ do_test (filename, bits);
}
static void
@@ -387,7 +380,7 @@ test_word_break (void)
#endif
bits.bits = 0;
bits.attr.is_word_boundary = 1;
- do_test (filename, bits, FALSE);
+ do_test (filename, bits);
}
static void
@@ -403,7 +396,7 @@ test_sentence_break (void)
#endif
bits.bits = 0;
bits.attr.is_sentence_boundary = 1;
- do_test (filename, bits, FALSE);
+ do_test (filename, bits);
}
static void
@@ -420,7 +413,7 @@ test_line_break (void)
bits.bits = 0;
bits.attr.is_line_break = 1;
bits.attr.is_mandatory_break = 1;
- do_test (filename, bits, FALSE);
+ do_test (filename, bits);
}