wylark
/
munter.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac1b24e
)
Minor improvement to test
author
Alexander Vasarab <alexander@wylark.com>
Wed, 24 Jun 2020 03:54:41 +0000
(20:54 -0700)
committer
Alexander Vasarab <alexander@wylark.com>
Wed, 24 Jun 2020 03:54:41 +0000
(20:54 -0700)
tests/test.py
patch
|
blob
|
history
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'])