diff --git a/bar_test.go b/bar_test.go index d22a36f..f97d5c7 100644 --- a/bar_test.go +++ b/bar_test.go @@ -52,7 +52,7 @@ p.Wait() } -func TestBarIncrRefillBy(t *testing.T) { +func TestBarSetRefill(t *testing.T) { var buf bytes.Buffer width := 100 @@ -64,7 +64,8 @@ bar := p.AddBar(int64(total), BarTrim()) - bar.RefillBy(till, refillRune) + bar.SetRefill(till, refillRune) + bar.IncrBy(till) for i := 0; i < total-till; i++ { bar.Increment()