Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions exercises/practice/swift-scheduling/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ description = "Q4 in the second quarter translates to the last workday of the fo

[c920886c-44ad-4d34-a156-dc4176186581]
description = "Q3 in the fourth quarter translates to the last workday of the third quarter of next year"

[7c8f1616-be62-417e-bbd5-a60fa743eccc]
description = "Q2 starting in the last month of the second quarter translates to the last workday of the second quarter of this year"
10 changes: 9 additions & 1 deletion exercises/practice/swift-scheduling/swift_scheduling.bats
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bats
load bats-extra

# generated on 2026-06-29T16:53:25+00:00
# generated on 2026-07-18T06:41:40+00:00

@test "NOW translates to two hours later" {
# [[ $BATS_RUN_SKIPPED == "true" ]] || skip
Expand Down Expand Up @@ -114,3 +114,11 @@ load bats-extra
assert_success
assert_output "2023-09-29T08:00:00"
}

@test "Q2 starting in the last month of the second quarter translates to the last workday of the second quarter of this year" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash swift_scheduling.sh "Q2" "2019-06-15T09:50:00"
assert_success
assert_output "2019-06-28T08:00:00"
}