aboutsummaryrefslogtreecommitdiffstats
path: root/util/text/text_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/text/text_test.go')
-rw-r--r--util/text/text_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/text/text_test.go b/util/text/text_test.go
index 7008589d..9bf21164 100644
--- a/util/text/text_test.go
+++ b/util/text/text_test.go
@@ -157,6 +157,14 @@ func TestWrapLeftPadded(t *testing.T) {
蚗佶庂咺丌,輀鈁乇彽洢溦洰氶乇构碨洐巿阹。`,
59, 4,
},
+ // Handle long unbreakable words in a full stentence
+ {
+ "OT: there are alternatives to maintainer-/user-set priority, e.g. \"[user pain](http://www.lostgarden.com/2008/05/improving-bug-triage-with-user-pain.html)\".",
+ ` OT: there are alternatives to maintainer-/user-set
+ priority, e.g. "[user pain](http://www.lostgarden.com/
+ 2008/05/improving-bug-triage-with-user-pain.html)".`,
+ 58, 4,
+ },
}
for i, tc := range cases {