From: Alexander Vasarab Date: Wed, 24 Jun 2020 03:54:41 +0000 (-0700) Subject: Minor improvement to test X-Git-Tag: v2.1.0~4 X-Git-Url: https://wylark.com/src/munter.git/commitdiff_plain/9baab6bf9030abb0802f7a7e05d295a7cddeb470?ds=inline Minor improvement to test --- diff --git a/tests/test.py b/tests/test.py index 5008334..5606d30 100755 --- a/tests/test.py +++ b/tests/test.py @@ -2,5 +2,10 @@ # -*- coding: utf-8 -*- import munter +# positional args invocation est = munter.time_calc(3.2, 2300, 'average', 'uphill', 'imperial') -print("Time Estimate: %s hours" % est['time']) +print("Time estimate (3.2 mi, +2300'): %s hours" % est['time']) + +# defaults with one override invocation +est = munter.time_calc(4.5, 2650, fitness='slow') +print("Time estimate (4.5 mi, +2650, slow): %s hours" % est['time'])