Codebase list golang-github-vbauerster-mpb / 4a3019e
extra test cases Vladimir Bauer 6 years ago
1 changed file(s) with 49 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
210210 want: "[>-------------------------------------------------------------------------------------------------]",
211211 },
212212 {
213 name: "t,c{100,99}",
214 total: 100,
215 current: 99,
216 want: " [==============================================================================================>-] ",
217 },
218 {
219 name: "t,c{100,99}trim",
220 total: 100,
221 current: 99,
222 trim: true,
223 want: "[================================================================================================>-]",
224 },
225 {
226 name: "t,c{100,100}",
227 total: 100,
228 current: 100,
229 want: " [================================================================================================] ",
230 },
231 {
232 name: "t,c{100,100}trim",
233 total: 100,
234 current: 100,
235 trim: true,
236 want: "[==================================================================================================]",
237 },
238 {
239 name: "t,c,r{100,100,100}trim",
240 total: 100,
241 current: 100,
242 refill: 100,
243 trim: true,
244 want: "[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]",
245 },
246 {
213247 name: "t,c{100,33}",
214248 total: 100,
215249 current: 33,
270304 want: "[+++++++++++++++++++++++++++++++=======>-----------------------------------------------------------]",
271305 },
272306 {
273 name: "t,c{100,99}",
274 total: 100,
275 current: 99,
276 want: " [==============================================================================================>-] ",
277 },
278 {
279 name: "t,c{100,99}trim",
280 total: 100,
281 current: 99,
282 trim: true,
283 want: "[================================================================================================>-]",
284 },
285 {
286 name: "t,c{100,100}",
287 total: 100,
288 current: 100,
289 want: " [================================================================================================] ",
290 },
291 {
292 name: "t,c{100,100}trim",
293 total: 100,
294 current: 100,
295 trim: true,
296 want: "[==================================================================================================]",
307 name: "t,c,r{100,40,33},rev",
308 total: 100,
309 current: 40,
310 refill: 33,
311 reverse: true,
312 want: " [----------------------------------------------------------<======+++++++++++++++++++++++++++++++] ",
313 },
314 {
315 name: "t,c,r{100,40,33}trim,rev",
316 total: 100,
317 current: 40,
318 refill: 33,
319 trim: true,
320 reverse: true,
321 want: "[-----------------------------------------------------------<=======+++++++++++++++++++++++++++++++]",
297322 },
298323 {
299324 name: "[=の-] t,c{100,1}",