fix tests
Vladimir Bauer
7 years ago
| 64 | 64 |
|
| 65 | 65 |
bar := p.AddBar(int64(total), TrimSpace())
|
| 66 | 66 |
|
| 67 | |
bar.SetRefill(till)
|
|
67 |
bar.SetRefill(int64(till))
|
| 68 | 68 |
bar.IncrBy(till)
|
| 69 | 69 |
|
| 70 | 70 |
for i := 0; i < total-till; i++ {
|
| 12 | 12 |
total, current int64
|
| 13 | 13 |
barWidth int
|
| 14 | 14 |
trimSpace bool
|
| 15 | |
rup int
|
|
15 |
rup int64
|
| 16 | 16 |
want string
|
| 17 | 17 |
}{
|
| 18 | 18 |
2: {
|
|
| 273 | 273 |
s.current = tc.current
|
| 274 | 274 |
s.trimSpace = tc.trimSpace
|
| 275 | 275 |
if tc.rup > 0 {
|
| 276 | |
if f, ok := s.filler.(interface{ SetRefill(int) }); ok {
|
|
276 |
if f, ok := s.filler.(interface{ SetRefill(int64) }); ok {
|
| 277 | 277 |
f.SetRefill(tc.rup)
|
| 278 | 278 |
}
|
| 279 | 279 |
}
|