Codebase list golang-github-vbauerster-mpb / beefa02
Better want Vladimir Bauer 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9898
9999 bytes := removeLastRune(buf.Bytes())
100100 got := string(bytes[len(bytes)-customWidth:])
101 want := "[==========================================================]"
101 want := fmt.Sprintf("[%s]", strings.Repeat("=", customWidth-2))
102102 if got != want {
103103 t.Errorf("Expected format: %s, got %s\n", want, got)
104104 }