Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Miek Gieben <[email protected]>
  • Loading branch information
miekg committed Nov 15, 2024
1 parent 3ac1751 commit 431fe31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/text/wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ func TestWrap(t *testing.T) {

func TestWrapNarrow(t *testing.T) {
exp := "The\nquick\nbrown\nfox\njumps\nover\nthe\nlazy\ndog."
if Wrap(text, 5) != exp {
if Wrap(text, "", 5) != exp {
t.Fail()
}
}

func TestWrapOneLine(t *testing.T) {
exp := "The quick brown fox jumps over the lazy dog."
if Wrap(text, 500) != exp {
if Wrap(text, "", 500) != exp {
t.Fail()
}
}
Expand All @@ -54,7 +54,7 @@ func TestWrapBug1(t *testing.T) {
}

for _, test := range cases {
got := Wrap(test.text, test.limit)
got := Wrap(test.text, "", test.limit)
if got != test.want {
t.Errorf("Wrap(%q, %d) = %q want %q", test.text, test.limit, got, test.want)
}
Expand Down

0 comments on commit 431fe31

Please sign in to comment.