@@ -8,22 +8,23 @@ def test_humanize_runtime():
88 assert humanize_runtime (1000000000 ) == "1.00 second"
99 assert humanize_runtime (60000000000 ) == "1.00 minute"
1010 assert humanize_runtime (3600000000000 ) == "1.00 hour"
11+ assert humanize_runtime (86400000000000 ) == "1.00 day"
1112
1213 assert humanize_runtime (1 ) == "1.00 nanosecond"
1314 assert humanize_runtime (12 ) == "12.0 nanoseconds"
1415 assert humanize_runtime (123 ) == "123 nanoseconds"
1516 assert humanize_runtime (999 ) == "999 nanoseconds"
16- assert humanize_runtime (1234 ) == "1.23 microsecond "
17+ assert humanize_runtime (1234 ) == "1.23 microseconds "
1718 assert humanize_runtime (12345 ) == "12.3 microseconds"
1819 assert humanize_runtime (123456 ) == "123 microseconds"
19- assert humanize_runtime (1234567 ) == "1.23 millisecond "
20+ assert humanize_runtime (1234567 ) == "1.23 milliseconds "
2021 assert humanize_runtime (12345678 ) == "12.3 milliseconds"
2122 assert humanize_runtime (123456789 ) == "123 milliseconds"
2223
23- assert humanize_runtime (1234567891 ) == "1.23 second "
24+ assert humanize_runtime (1234567891 ) == "1.23 seconds "
2425 assert humanize_runtime (12345678912 ) == "12.3 seconds"
2526 assert humanize_runtime (123456789123 ) == "2.06 minutes"
2627 assert humanize_runtime (1234567891234 ) == "20.6 minutes"
2728 assert humanize_runtime (12345678912345 ) == "3.43 hours"
28- assert humanize_runtime (98765431298760 ) == "1.14 day "
29+ assert humanize_runtime (98765431298760 ) == "1.14 days "
2930 assert humanize_runtime (197530862597520 ) == "2.29 days"
0 commit comments