X-Git-Url: https://wylark.com/src/munter.git/blobdiff_plain/199c4afc24dd503212cde2ca87f2c16aa4dd384b..077fc7bf1018ea787f3d7f4dffb8a4e9dc691742:/tests/test.py diff --git a/tests/test.py b/tests/test.py index bf5b01b..5606d30 100755 --- a/tests/test.py +++ b/tests/test.py @@ -2,5 +2,10 @@ # -*- coding: utf-8 -*- import munter -est = munter.time_calc(3.2, 2300, 'uphill', 'imperial') -print("Time Estimate: %s hours" % est['time']) +# positional args invocation +est = munter.time_calc(3.2, 2300, 'average', 'uphill', 'imperial') +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'])