mirror of https://github.com/tqdm/tqdm.git
Another format meter test
This commit is contained in:
parent
2f46d5468b
commit
8bb8a1731b
4
tests.py
4
tests.py
|
@ -9,7 +9,9 @@ def test_format_interval():
|
||||||
|
|
||||||
|
|
||||||
def test_format_meter():
|
def test_format_meter():
|
||||||
|
assert format_meter(0, 1000, 13) == \
|
||||||
|
"|----------| 0/1000 0% [elapsed: " \
|
||||||
|
"00:13 left: ?, 0.00 iters/sec]"
|
||||||
assert format_meter(231, 1000, 392) == \
|
assert format_meter(231, 1000, 392) == \
|
||||||
"|##--------| 231/1000 23% [elapsed: " \
|
"|##--------| 231/1000 23% [elapsed: " \
|
||||||
"06:32 left: 12:49, 0.00 iters/sec]"
|
"06:32 left: 12:49, 0.00 iters/sec]"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue