summaryrefslogtreecommitdiff
path: root/tests/breaks
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-24 22:57:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-25 00:40:17 -0400
commit8fda48b39e7379348d98effb6b94ad1f83caab82 (patch)
tree6a1051b20492a26cc20a68d3c87cf7f0fc4824c8 /tests/breaks
parent6058254f0106c624dba2b555959554e1d3b8f2a1 (diff)
downloadpango-8fda48b39e7379348d98effb6b94ad1f83caab82.tar.gz
Add some new tests for hyphenshyphen-log-attr
Diffstat (limited to 'tests/breaks')
-rw-r--r--tests/breaks/fifteen.break1
-rw-r--r--tests/breaks/fifteen.expected7
-rw-r--r--tests/breaks/sixteen.break1
-rw-r--r--tests/breaks/sixteen.expected7
4 files changed, 16 insertions, 0 deletions
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