[pango/hyphen-log-attr: 3/3] Add some new tests for hyphens




commit 8fda48b39e7379348d98effb6b94ad1f83caab82
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 24 22:57:04 2021 -0400

    Add some new tests for hyphens

 tests/breaks/fifteen.break    | 1 +
 tests/breaks/fifteen.expected | 7 +++++++
 tests/breaks/sixteen.break    | 1 +
 tests/breaks/sixteen.expected | 7 +++++++
 4 files changed, 16 insertions(+)
---
diff --git a/tests/breaks/fifteen.break b/tests/breaks/fifteen.break
new file mode 100644
index 00000000..452d9bb5
--- /dev/null
+++ b/tests/breaks/fifteen.break
@@ -0,0 +1 @@
+<span insert_hyphens='false'>one</span> two-three fo­ur
diff --git a/tests/breaks/fifteen.expected b/tests/breaks/fifteen.expected
new file mode 100644
index 00000000..3f5e4655
--- /dev/null
+++ b/tests/breaks/fifteen.expected
@@ -0,0 +1,7 @@
+Text:         ⁦o⁩ ⁦n⁩ ⁦e⁩  [ ]  ⁦t⁩ ⁦w⁩ ⁦o⁩  ⁦-⁩  ⁦t⁩ ⁦h⁩ ⁦r⁩ ⁦e⁩ ⁦e⁩  [ ]  ⁦f⁩ ⁦o⁩ [0xad]  ⁦u⁩ ⁦r⁩  [0x0a] 
+Breaks:     c  c c c    lc c c c  lc c c c c c    lc c c      lc c c       c
+Whitespace:        x                         x                     w       w
+Sentences:  bs                                                     e       b
+Words:      bs     be   bs     be bs         be   bs               be      b
+Graphemes:  b  b b b    b  b b b  b  b b b b b    b  b b      b  b b       b
+Hyphens:                   i i       i i i i         i        i  i          
diff --git a/tests/breaks/sixteen.break b/tests/breaks/sixteen.break
new file mode 100644
index 00000000..51062618
--- /dev/null
+++ b/tests/breaks/sixteen.break
@@ -0,0 +1 @@
+hy‧phen|ation over­load
diff --git a/tests/breaks/sixteen.expected b/tests/breaks/sixteen.expected
new file mode 100644
index 00000000..75f20b9f
--- /dev/null
+++ b/tests/breaks/sixteen.expected
@@ -0,0 +1,7 @@
+Text:         ⁦h⁩ ⁦y⁩ ⁦‧⁩  ⁦p⁩ ⁦h⁩ ⁦e⁩ ⁦n⁩  ⁦|⁩  ⁦a⁩ ⁦t⁩ ⁦i⁩ ⁦o⁩ ⁦n⁩  [ ]  ⁦o⁩ ⁦v⁩ ⁦e⁩ ⁦r⁩ [0xad]  ⁦l⁩ ⁦o⁩ 
⁦a⁩ ⁦d⁩  [0x0a] 
+Breaks:     c  c c lc c c c c  lc c c c c c    lc c c c c      lc c c c c       c
+Whitespace:                               x                             w       w
+Sentences:  bs                                                          e       b
+Words:      bs   e s        be bs         be   bs                       be      b
+Graphemes:  b  b b b  b b b b  b  b b b b b    b  b b b b      b  b b b b       b
+Hyphens:       i   ri i i i    ri i i i i         i i i        i  i i i          


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