X-Git-Url: https://wylark.com/src/munter.git/blobdiff_plain/61c8ebae076bed62feca9f4c53920e39b3c1ef53..29e71e0e4095d097b9c420ed7a4757651cafa6b4:/tests/test.py?ds=sidebyside diff --git a/tests/test.py b/tests/test.py index 5606d30..8090894 100755 --- a/tests/test.py +++ b/tests/test.py @@ -1,11 +1,12 @@ #! /usr/bin/env python # -*- coding: utf-8 -*- +"""rudimentary test program for Munter.py""" import munter # positional args invocation -est = munter.time_calc(3.2, 2300, 'average', 'uphill', 'imperial') -print("Time estimate (3.2 mi, +2300'): %s hours" % est['time']) +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']) +EST = munter.time_calc(4.5, 2650, fitness='slow') +print("Time estimate (4.5 mi, +2650, slow): %s hours" % EST['time'])