Codebase list golang-github-vbauerster-mpb / 695ce53
test update Vladimir Bauer 9 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
77 func TestAddBar(t *testing.T) {
88 var buf bytes.Buffer
99 p := New(nil).SetWidth(60).SetOut(&buf)
10 count := p.BarsCount()
10 count := p.BarCount()
1111 if count != 0 {
1212 t.Errorf("Count want: %q, got: %q\n", 0, count)
1313 }
1414 bar := p.AddBar(10)
15 count = p.BarsCount()
15 count = p.BarCount()
1616 if count != 1 {
1717 t.Errorf("Count want: %q, got: %q\n", 0, count)
1818 }
3030 t.Error("RemoveBar failure")
3131 }
3232
33 count := p.BarsCount()
33 count := p.BarCount()
3434 if count != 0 {
3535 t.Errorf("Count want: %q, got: %q\n", 0, count)
3636 }