Codebase list golang-github-vbauerster-mpb / 39b557c
fix test for ./... Vladimir Bauer 9 years ago
1 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2424 runeCount := utf8.RuneCountInString(strings.TrimSpace(buf.String()))
2525 defWidth := 80
2626 if runeCount != defWidth {
27 t.Errorf("Expected default width: %d, got: %d\n", defWidth, runeCount)
27 defWidth = 78 // when testing with ./...
28 if runeCount != defWidth {
29 t.Errorf("Expected default width: %d, got: %d\n", defWidth, runeCount)
30 }
2831 }
2932 }
3033
3942 p.Stop()
4043 runeCount := utf8.RuneCountInString(strings.TrimSpace(buf.String()))
4144 if runeCount != customWidth {
42 t.Errorf("Expected default width: %d, got: %d\n", customWidth, runeCount)
45 customWidth = 58 // when testing with ./...
46 if runeCount != customWidth {
47 t.Errorf("Expected default width: %d, got: %d\n", customWidth, runeCount)
48 }
4349 }
4450 }
4551