diff --git a/bar_test.go b/bar_test.go index 5e91cb6..0247bed 100644 --- a/bar_test.go +++ b/bar_test.go @@ -25,21 +25,35 @@ barWidth: 100, total: 100, current: 20, - want: []byte("[]"), + want: []byte("[>]"), }, { termWidth: 20, barWidth: 100, total: 100, current: 20, - want: []byte("[==>---------------]"), + want: []byte("[===>--------------]"), }, { termWidth: 50, barWidth: 100, total: 100, current: 20, - want: []byte("[========>---------------------------------------]"), + want: []byte("[=========>--------------------------------------]"), + }, + { + termWidth: 100, + barWidth: 100, + total: 100, + current: 0, + want: []byte("[--------------------------------------------------------------------------------------------------]"), + }, + { + termWidth: 100, + barWidth: 100, + total: 100, + current: 1, + want: []byte("[>-------------------------------------------------------------------------------------------------]"), }, { termWidth: 100, @@ -61,7 +75,7 @@ barWidth: 100, total: 100, current: 99, - want: []byte("[=================================================================================================>]"), + want: []byte("[================================================================================================>-]"), }, { termWidth: 100,