Skip to content

Commit 9fb8144

Browse files
committed
Actually test correct ellipsis behavior
We expect the ellipses to be smaller and not used, if it has the same length.
1 parent 047a958 commit 9fb8144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/misc/strings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestShortString(t *testing.T) {
7373
{"what a stupid text", 7, 5, "what a … text"},
7474
{"what a great text", 8, 9, "what a great text"},
7575
{"what a great text", 6, 7, "what a…at text"},
76-
{"日本語偽善者", 2, 2, "日本…善者"},
76+
{"日本語偽善者", 1, 4, "日本語偽善者"}, // Text + ellipsis must be shorter, or do not use ellipses
7777
{"日本語偽善者", 1, 1, "日…者"},
7878
{"ab日本語皮を被る", 1, 2, "a…被る"},
7979
{"", 0, 0, ""},

0 commit comments

Comments
 (0)