[pango/break-tailoring: 36/37] Add more break tests




commit 78b546be3c8fbf80630a6c23aaceb743c23f4958
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 21 22:19:33 2021 -0400

    Add more break tests
    
    Test that attributes spanning items work as
    expected.

 tests/breaks/fourteen.break    | 2 ++
 tests/breaks/fourteen.expected | 6 ++++++
 2 files changed, 8 insertions(+)
---
diff --git a/tests/breaks/fourteen.break b/tests/breaks/fourteen.break
new file mode 100644
index 00000000..176c35b4
--- /dev/null
+++ b/tests/breaks/fourteen.break
@@ -0,0 +1,2 @@
+# item-spanning line break attrs
+<span allow_breaks='none'>ab<span break_before='char' break_after='char'>c α</span>βγ</span>
diff --git a/tests/breaks/fourteen.expected b/tests/breaks/fourteen.expected
new file mode 100644
index 00000000..5a3b40d6
--- /dev/null
+++ b/tests/breaks/fourteen.expected
@@ -0,0 +1,6 @@
+Text:         ⁦a⁩ ⁦b⁩ ⁦c⁩  [ ]  ⁦α⁩ ⁦β⁩ ⁦γ⁩  [0x0a] 
+Breaks:     c    c         c   c       c
+Whitespace:        x           w       w
+Sentences:  bs                 e       b
+Words:      bs     be   bs     be      b
+Graphemes:  b  b b b    b  b b b       b


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]