Skip to content

Commit

Permalink
fix(ansi): truncate: add test case for width greater than input
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jul 9, 2024
1 parent fe84162 commit 9d42857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ansi/truncate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var tcases = []struct {
{"equalascii", "one", ".", 3, "one"},
{"equalemoji", "on👋", ".", 3, "on."},
{"equalcontrolemoji", "one\x1b[0m", ".", 3, "one\x1b[0m"},
{"truncate_tail_greater", "foo", "...", 5, "foo"},
{"simple", "foobar", "", 3, "foo"},
{"passthrough", "foobar", "", 10, "foobar"},
{"ascii", "hello", "", 3, "hel"},
Expand Down

0 comments on commit 9d42857

Please sign in to comment.