The instructions for Swift Scheduling give the following rules for ASAP:
before 12:00 → today at 17:00; after 12:00 → tomorrow at 12:00. But in the tests, we have
def test_asap_at_one_in_the_afternoon_translates_to_tomorrow_at_one_in_the_afternoon(
self,
):
self.assertEqual(
delivery_date("2008-12-21T13:00:00", "ASAP"), "2008-12-22T13:00:00"
)
According to the instructions, I’d expect the result to be 12:00, not 13:00.
The preceding test also has the misleading name
def test_asap_before_one_in_the_afternoon_translates_to_today_at_five_in_the_afternoon(
self,
):
although it doesn’t matter because the tested time is before noon.