Minor improvement to test
authorAlexander Vasarab <alexander@wylark.com>
Wed, 24 Jun 2020 03:54:41 +0000 (20:54 -0700)
committerAlexander Vasarab <alexander@wylark.com>
Wed, 24 Jun 2020 03:54:41 +0000 (20:54 -0700)
tests/test.py

index 5008334d4bf8691469d47d2eabef4d18f4ecd93c..5606d30fb76b7e71c3988caab0301a8538f8bfc1 100755 (executable)
@@ -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'])