summaryrefslogtreecommitdiff
path: root/tests/test-break.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-07 17:58:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-07 18:17:04 -0400
commit74b126211feb9a0b7b9b2e137fdab1783681eaa4 (patch)
treedd06c327fb05845b9845bbce6161a0ed7a4c839f /tests/test-break.c
parent068aa03ceaa55537fc0144783c6446e03314c481 (diff)
downloadpango-74b126211feb9a0b7b9b2e137fdab1783681eaa4.tar.gz
Make the break test actually test things
We were not diffing the output against the expected results.
Diffstat (limited to 'tests/test-break.c')
-rw-r--r--tests/test-break.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test-break.c b/tests/test-break.c
index 9f069c09..acbe9014 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -117,6 +117,11 @@ test_file (const gchar *filename, GString *string)
w++;
}
+ if (log.is_word_boundary)
+ {
+ g_string_append (s3, "b");
+ o++;
+ }
if (log.is_word_start)
{
g_string_append (s3, "s");
@@ -128,6 +133,11 @@ test_file (const gchar *filename, GString *string)
o++;
}
+ if (log.is_sentence_boundary)
+ {
+ g_string_append (s4, "b");
+ s++;
+ }
if (log.is_sentence_start)
{
g_string_append (s4, "s");
@@ -228,7 +238,7 @@ test_break (gconstpointer d)
test_file (filename, dump);
- //diff = diff_with_file (expected_file, dump->str, dump->len, &error);
+ diff = diff_with_file (expected_file, dump->str, dump->len, &error);
g_assert_no_error (error);
if (diff && diff[0])