wylark
/
munter.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tense in README for consistency
[munter.git]
/
tests
/
test.py
diff --git
a/tests/test.py
b/tests/test.py
index 5008334d4bf8691469d47d2eabef4d18f4ecd93c..5606d30fb76b7e71c3988caab0301a8538f8bfc1 100755
(executable)
--- a/
tests/test.py
+++ b/
tests/test.py
@@
-2,5
+2,10
@@
# -*- coding: utf-8 -*-
import munter
# -*- coding: utf-8 -*-
import munter
+# positional args invocation
est = munter.time_calc(3.2, 2300, 'average', 'uphill', 'imperial')
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'])