Swift Scheduling: tests disagree with instructions

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.

Thanks for reporting this, @alterpatzer!

When merging this new exercise today, I forgot to re-sync it to problem-specifications! :woman_facepalming:

Fixed in this PR, which will be merged when the CI clears. :smile:

2 Likes

Pr merged!