diff --git a/draw_test.go b/draw_test.go index cfce42e..3cb3c0b 100644 --- a/draw_test.go +++ b/draw_test.go @@ -1263,57 +1263,99 @@ want: " の=>-------------------------------------------------------------------------------------------の ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").Padding("つ").Rbound("]"), + style: BarStyle().Tip("だ"), name: `t,c{100,1}Tip("だ")`, + total: 100, + current: 1, + want: " [だ---------------------------------------------------------------------------------------------] ", + }, + { + style: BarStyle().Tip("だ"), + name: `t,c{100,2}Tip("だ")`, + total: 100, + current: 2, + want: " [だ---------------------------------------------------------------------------------------------] ", + }, + { + style: BarStyle().Tip("だ"), + name: `t,c{100,3}Tip("だ")`, + total: 100, + current: 3, + want: " [=だ--------------------------------------------------------------------------------------------] ", + }, + { + style: BarStyle().Tip("だ"), + name: `t,c{100,99}Tip("だ")`, + total: 100, + current: 99, + want: " [============================================================================================だ-] ", + }, + { + style: BarStyle().Tip("だ"), + name: `t,c{100,100}Tip("だ")`, + total: 100, + current: 100, + want: " [===============================================================================================] ", + }, + { + style: BarStyle().TipOnComplete("だ"), + name: `t,c{100,100}TipOnComplete("だ")`, + total: 100, + current: 100, + want: " [=============================================================================================だ] ", + }, + { + style: BarStyle().Filler("の").Tip("だ").Padding("つ"), + name: `t,c{100,1}Filler("の").Tip("だ").Padding("つ")`, total: 100, current: 1, want: " [だつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつ…] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").Padding("つ").Rbound("]"), - name: `t,c{100,2}Tip("だ")`, + style: BarStyle().Filler("の").Tip("だ").Padding("つ"), + name: `t,c{100,2}Filler("の").Tip("だ").Padding("つ")`, total: 100, current: 2, want: " [だつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつつ…] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").Padding("つ").Rbound("]"), - name: `t,c{100,99}Tip("だ")`, + style: BarStyle().Filler("の").Tip("だ").Padding("つ"), + name: `t,c{100,99}Filler("の").Tip("だ").Padding("つ")`, total: 100, current: 99, want: " [ののののののののののののののののののののののののののののののののののののののののののののののだ…] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").Padding("つ").Rbound("]"), - name: `t,c{100,100}Tip("だ")`, + style: BarStyle().Filler("の").Tip("だ").Padding("つ"), + name: `t,c{100,100}.Filler("の").Tip("だ").Padding("つ")`, total: 100, current: 100, want: " […ののののののののののののののののののののののののののののののののののののののののののののののの] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").Padding("つ").Rbound("]").Reverse(), - name: `t,c{100,100}Tip("だ")rev`, + style: BarStyle().Filler("の").Tip("だ").Padding("つ").Reverse(), + name: `t,c{100,100}Filler("の").Tip("だ").Padding("つ").Reverse()`, total: 100, current: 100, want: " [ののののののののののののののののののののののののののののののののののののののののののののののの…] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ").Rbound("]"), - name: `t,c{100,99}Tip("だ").TipOnComplete("だ")`, + style: BarStyle().Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ"), + name: `t,c{100,99}Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ")`, total: 100, current: 99, want: " [ののののののののののののののののののののののののののののののののののののののののののののののだ…] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ").Rbound("]"), - name: `t,c{100,100}Tip("だ").TipOnComplete("だ")`, + style: BarStyle().Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ"), + name: `t,c{100,100}.Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ")`, total: 100, current: 100, want: " […ののののののののののののののののののののののののののののののののののののののののののののののだ] ", }, { - style: BarStyle().Lbound("[").Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ").Rbound("]").Reverse(), - name: `t,c{100,100}Tip("だ").TipOnComplete("だ")rev`, + style: BarStyle().Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ").Reverse(), + name: `t,c{100,100}.Filler("の").Tip("だ").TipOnComplete("だ").Padding("つ").Reverse()`, total: 100, current: 100, want: " [だのののののののののののののののののののののののののののののののののののののののののののののの…] ",