Hello everyone.
I suppose, I’ve found a bug in the tests or I can’t understand…
I got an error:
Traceback (most recent call last):
File “/home/runner/boilerplate-time-calculator/test_module.py”, line 35, in test_two_days_later
self.assertEqual(actual, expected, ‘Expected calling “add_time()” with “11:59 PM”, “24:05” to return “12:04 AM (2 days later)”’)
AssertionError: ‘0:04 AM (2 days later)’ != ‘12:04 AM (2 days later)’
- 0:04 AM (2 days later)
? ^
- 12:04 AM (2 days later)
? ^^
: Expected calling “add_time()” with “11:59 PM”, “24:05” to return “12:04 AM (2 days later)”
======================================================================
FAIL: test_two_days_later_with_day (test_module.UnitTests)
Traceback (most recent call last):
File “/home/runner/boilerplate-time-calculator/test_module.py”, line 60, in test_two_days_later_with_day
self.assertEqual(actual, expected, ‘Expected calling “add_time()” with “11:59 PM”, “24:05”, “Wednesday” to return “12:04 AM, Friday (2 days later)”’)
AssertionError: ‘0:04 AM, Friday (2 days later)’ != ‘12:04 AM, Friday (2 days later)’
- 0:04 AM, Friday (2 days later)
? ^
- 12:04 AM, Friday (2 days later)
? ^^
: Expected calling “add_time()” with “11:59 PM”, “24:05”, “Wednesday” to return “12:04 AM, Friday (2 days later)”
the question is how can be 12:04 AM?