diff --git a/draw_test.go b/draw_test.go index 77075a3..d9596d8 100644 --- a/draw_test.go +++ b/draw_test.go @@ -211,6 +211,40 @@ want: "[>-------------------------------------------------------------------------------------------------]", }, { + name: "t,c{100,99}", + total: 100, + current: 99, + want: " [==============================================================================================>-] ", + }, + { + name: "t,c{100,99}trim", + total: 100, + current: 99, + trim: true, + want: "[================================================================================================>-]", + }, + { + name: "t,c{100,100}", + total: 100, + current: 100, + want: " [================================================================================================] ", + }, + { + name: "t,c{100,100}trim", + total: 100, + current: 100, + trim: true, + want: "[==================================================================================================]", + }, + { + name: "t,c,r{100,100,100}trim", + total: 100, + current: 100, + refill: 100, + trim: true, + want: "[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]", + }, + { name: "t,c{100,33}", total: 100, current: 33, @@ -271,30 +305,21 @@ want: "[+++++++++++++++++++++++++++++++=======>-----------------------------------------------------------]", }, { - name: "t,c{100,99}", - total: 100, - current: 99, - want: " [==============================================================================================>-] ", - }, - { - name: "t,c{100,99}trim", - total: 100, - current: 99, - trim: true, - want: "[================================================================================================>-]", - }, - { - name: "t,c{100,100}", - total: 100, - current: 100, - want: " [================================================================================================] ", - }, - { - name: "t,c{100,100}trim", - total: 100, - current: 100, - trim: true, - want: "[==================================================================================================]", + name: "t,c,r{100,40,33},rev", + total: 100, + current: 40, + refill: 33, + reverse: true, + want: " [----------------------------------------------------------<======+++++++++++++++++++++++++++++++] ", + }, + { + name: "t,c,r{100,40,33}trim,rev", + total: 100, + current: 40, + refill: 33, + trim: true, + reverse: true, + want: "[-----------------------------------------------------------<=======+++++++++++++++++++++++++++++++]", }, { name: "[=の-] t,c{100,1}",