Skip to content

Commit

Permalink
fix: bad example
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed May 15, 2024
1 parent cce303c commit e3d9cca
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions list/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@ func TestSublist(t *testing.T) {
l := list.New().
Item("Foo").
Item("Bar").
Item(list.New("Hi", "Hello")).Enumerator(list.Roman).
Item(list.New("Hi", "Hello", "Halo").Enumerator(list.Roman)).
Item("Qux")

expected := `
I. Foo
II. Bar
• Hi
• Hello
III. Qux
• Foo
• Bar
I. Hi
II. Hello
III. Halo
• Qux
`
require.Equal(t, expected, l.String())
}
Expand Down

0 comments on commit e3d9cca

Please sign in to comment.