- commit
- 093abd4772e7c1faa632785da32efedf6de5364f
- parent
- e1d15830049ba50809b262a3487b099632f69bbc
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-01-10 13:10
test round_max
Diffstat
| M | test.py | 10 | ++++++++++ |
1 files changed, 10 insertions, 0 deletions
diff --git a/test.py b/test.py
@@ -35,6 +35,12 @@ def run_test(key, renderer): 35 35 print('generated', svg) 36 36 37 37 -1 38 def test_round_max(i, expected): -1 39 actual = simplecharts.round_max(i) -1 40 msg = 'round_max({}) == {} != {}'.format(i, actual, expected) -1 41 assert actual == expected, msg -1 42 -1 43 38 44 for fn in os.listdir(DIR): 39 45 if fn.endswith('.json'): 40 46 key = fn[:-5] @@ -42,3 +48,7 @@ for fn in os.listdir(DIR): 42 48 run_test(key, simplecharts.StackedColumnRenderer()) 43 49 run_test(key, simplecharts.LineRenderer()) 44 50 run_test(key, simplecharts.StackedAreaRenderer()) -1 51 -1 52 test_round_max(10, 20) -1 53 test_round_max(9, 10) -1 54 test_round_max(9000, 10000)