diff --git a/bar_test.go b/bar_test.go index b8cd1d0..3162028 100644 --- a/bar_test.go +++ b/bar_test.go @@ -19,12 +19,16 @@ total := 80 bar := p.AddBar(int64(total)) + if bar.Completed() { + t.Error("bar is completed before increment") + } + for i := 0; i < total; i++ { bar.Increment() } if !bar.Completed() { - t.Error("bar isn't completed") + t.Error("bar isn't completed after increment") } p.Wait()