TestBarSetRefill fix
Vladimir Bauer
7 years ago
| 51 | 51 | p.Wait() |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | func TestBarIncrRefillBy(t *testing.T) { | |
| 54 | func TestBarSetRefill(t *testing.T) { | |
| 55 | 55 | var buf bytes.Buffer |
| 56 | 56 | |
| 57 | 57 | width := 100 |
| 63 | 63 | |
| 64 | 64 | bar := p.AddBar(int64(total), BarTrim()) |
| 65 | 65 | |
| 66 | bar.RefillBy(till, refillRune) | |
| 66 | bar.SetRefill(till, refillRune) | |
| 67 | bar.IncrBy(till) | |
| 67 | 68 | |
| 68 | 69 | for i := 0; i < total-till; i++ { |
| 69 | 70 | bar.Increment() |