Codebase list golang-github-vbauerster-mpb / 7547c6e
bar_test: add current 0 case Vladimir Bauer 9 years ago
1 changed file(s) with 18 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2424 barWidth: 100,
2525 total: 100,
2626 current: 20,
27 want: []byte("[]"),
27 want: []byte("[>]"),
2828 },
2929 {
3030 termWidth: 20,
3131 barWidth: 100,
3232 total: 100,
3333 current: 20,
34 want: []byte("[==>---------------]"),
34 want: []byte("[===>--------------]"),
3535 },
3636 {
3737 termWidth: 50,
3838 barWidth: 100,
3939 total: 100,
4040 current: 20,
41 want: []byte("[========>---------------------------------------]"),
41 want: []byte("[=========>--------------------------------------]"),
42 },
43 {
44 termWidth: 100,
45 barWidth: 100,
46 total: 100,
47 current: 0,
48 want: []byte("[--------------------------------------------------------------------------------------------------]"),
49 },
50 {
51 termWidth: 100,
52 barWidth: 100,
53 total: 100,
54 current: 1,
55 want: []byte("[>-------------------------------------------------------------------------------------------------]"),
4256 },
4357 {
4458 termWidth: 100,
6074 barWidth: 100,
6175 total: 100,
6276 current: 99,
63 want: []byte("[=================================================================================================>]"),
77 want: []byte("[================================================================================================>-]"),
6478 },
6579 {
6680 termWidth: 100,