diff --git a/bar_test.go b/bar_test.go index d383ee1..6baeead 100644 --- a/bar_test.go +++ b/bar_test.go @@ -99,7 +99,7 @@ bytes := removeLastRune(buf.Bytes()) got := string(bytes[len(bytes)-customWidth:]) - want := "[==========================================================]" + want := fmt.Sprintf("[%s]", strings.Repeat("=", customWidth-2)) if got != want { t.Errorf("Expected format: %s, got %s\n", want, got) }