Skip to content

Commit 3da0c16

Browse files
authored
Synced New exercise swift-schedling to problem specifications. (#3936)
1 parent b3cf79f commit 3da0c16

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

exercises/practice/swift-scheduling/.docs/instructions.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The following table shows how to translate them:
2020
| Description | Meeting start | Delivery date |
2121
| ----------- | ----------------------------- | ----------------------------------- |
2222
| `"NOW"` | - | Two hours after the meeting started |
23-
| `"ASAP"` | Before 12:00 | Today at 17:00 |
24-
| `"ASAP"` | After 12:00 | Tomorrow at 12:00 |
23+
| `"ASAP"` | Before 13:00 | Today at 17:00 |
24+
| `"ASAP"` | After or at 13:00 | Tomorrow at 13:00 |
2525
| `"EOW"` | Monday, Tuesday, or Wednesday | Friday at 17:00 |
2626
| `"EOW"` | Thursday or Friday | Sunday at 20:00 |
2727

@@ -32,12 +32,19 @@ There are two variable delivery date description patterns:
3232
- `"<N>M"` (N-th month)
3333
- `"Q<N>"` (N-th quarter)
3434

35-
| Description | Meeting start | Delivery date |
36-
| ----------- | -------------------------- | ----------------------------------------------------------- |
37-
| `"<N>M"` | Before N-th month | At 8:00 on the _first_ workday¹ of this year's N-th month |
38-
| `"<N>M"` | After or in N-th month | At 8:00 on the _first_ workday¹ of next year's N-th month |
39-
| `"Q<N>"` | Before or in N-th quarter² | At 8:00 on the _last_ workday¹ of this year's N-th quarter² |
40-
| `"Q<N>"` | After N-th quarter² | At 8:00 on the _last_ workday¹ of next year's N-th quarter² |
41-
42-
¹ A workday is a Monday, Tuesday, Wednesday, Thursday, or Friday.
43-
² A year has four quarters, each with three months: January/February/March, April/May/June, July/August/September, and October/November/December.
35+
| Description | Meeting start | Delivery date |
36+
| ----------- | ------------------------- | --------------------------------------------------------- |
37+
| `"<N>M"` | Before N-th month | At 8:00 on the _first_ workday of this year's N-th month |
38+
| `"<N>M"` | After or in N-th month | At 8:00 on the _first_ workday of next year's N-th month |
39+
| `"Q<N>"` | Before or in N-th quarter | At 8:00 on the _last_ workday of this year's N-th quarter |
40+
| `"Q<N>"` | After N-th quarter | At 8:00 on the _last_ workday of next year's N-th quarter |
41+
42+
~~~~exercism/note
43+
A workday is a Monday, Tuesday, Wednesday, Thursday, or Friday.
44+
45+
A year has four quarters, each with three months:
46+
1. January/February/March
47+
2. April/May/June
48+
3. July/August/September
49+
4. October/November/December.
50+
~~~~

exercises/practice/swift-scheduling/.meta/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
]
1717
},
1818
"blurb": "Convert delivery date descriptions to actual delivery dates.",
19-
"source": "Original exercise idea from Eric Schierboom."
19+
"source": "Erik Schierboom",
20+
"source_url": "https://github.com/exercism/problem-specifications/pull/2536"
2021
}

exercises/practice/swift-scheduling/swift_scheduling_test.py

Lines changed: 1 addition & 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 2025-03-03
3+
# File last updated on 2025-06-25
44

55
import unittest
66

0 commit comments

Comments
 (0)