Codebase list golang-github-vbauerster-mpb / b991f89
check both cases Vladimir Bauer 4 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1818 total := 80
1919 bar := p.AddBar(int64(total))
2020
21 if bar.Completed() {
22 t.Error("bar is completed before increment")
23 }
24
2125 for i := 0; i < total; i++ {
2226 bar.Increment()
2327 }
2428
2529 if !bar.Completed() {
26 t.Error("bar isn't completed")
30 t.Error("bar isn't completed after increment")
2731 }
2832
2933 p.Wait()