Right-align labels
[munter.git] / tests / test.py
index bf5b01b538b79a7817ed17decb1c89c3d669fcf7..5606d30fb76b7e71c3988caab0301a8538f8bfc1 100755 (executable)
@@ -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'])