Skip to content

Commit

Permalink
some tests with BarStyle().Tip("")
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jul 16, 2024
1 parent a0b327b commit 06cd879
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions draw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,13 @@ func TestDrawDefault(t *testing.T) {
current: 1,
want: " [>-----------------------------------------------------------------------------------------------] ",
},
{
style: BarStyle().Tip(""),
name: "t,c{100,1}empty_tip",
total: 100,
current: 1,
want: " [=-----------------------------------------------------------------------------------------------] ",
},
{
style: BarStyle(),
name: "t,c{100,1}trim",
Expand All @@ -636,6 +643,13 @@ func TestDrawDefault(t *testing.T) {
current: 99,
want: " [==============================================================================================>-] ",
},
{
style: BarStyle().Tip(""),
name: "t,c{100,99}empty_tip",
total: 100,
current: 99,
want: " [===============================================================================================-] ",
},
{
style: BarStyle(),
name: "t,c{100,99}trim",
Expand Down

0 comments on commit 06cd879

Please sign in to comment.