Skip to content

Commit d46364b

Browse files
committed
Synced exercise to problem specs and regenerated test file.
1 parent fcf4740 commit d46364b

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

‎exercises/practice/swift-scheduling/.meta/tests.toml‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[1d0e6e72-f370-408c-bc64-5dafa9c6da73]
613
description = "NOW translates to two hours later"
@@ -49,3 +56,6 @@ description = "Q4 in the second quarter translates to the last workday of the fo
4956

5057
[c920886c-44ad-4d34-a156-dc4176186581]
5158
description = "Q3 in the fourth quarter translates to the last workday of the third quarter of next year"
59+
60+
[7c8f1616-be62-417e-bbd5-a60fa743eccc]
61+
description = "Q2 starting in the last month of the second quarter translates to the last workday of the second quarter of this year"

‎exercises/practice/swift-scheduling/swift_scheduling_test.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These tests are auto-generated with test data from:
22
# https://github.com/exercism/problem-specifications/tree/main/exercises/swift-scheduling/canonical-data.json
3-
# File last updated on 2026-02-19
3+
# File last updated on 2026-09-30
44

55
import unittest
66

@@ -108,3 +108,10 @@ def test_q3_in_the_fourth_quarter_translates_to_the_last_workday_of_the_third_qu
108108
self.assertEqual(
109109
delivery_date("2022-10-06T11:00:00", "Q3"), "2023-09-29T08:00:00"
110110
)
111+
112+
def test_q2_starting_in_the_last_month_of_the_second_quarter_translates_to_the_last_workday_of_the_second_quarter_of_this_year(
113+
self,
114+
):
115+
self.assertEqual(
116+
delivery_date("2019-06-15T09:50:00", "Q2"), "2019-06-28T08:00:00"
117+
)

0 commit comments

Comments
 (0)