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
18 changes: 18 additions & 0 deletions exercises/practice/line-up/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,24 @@ description = "format non-exceptional ordinal numeral 13"
[2bdcebc5-c029-4874-b6cc-e9bec80d603a]
description = "format exceptional ordinal numeral 21"

[a98e2e22-ab41-4557-a7c2-efedc19c16da]
description = "format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11"

[ab45d2fb-e0ee-4016-b605-76917584db0a]
description = "format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11"

[c9243603-9f17-45b3-9a41-db9ebdbf08e1]
description = "format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13"

[74ee2317-0295-49d2-baf0-d56bcefa14e3]
description = "format exceptional ordinal numeral 62"

[3f6c408c-4331-42b6-bb6c-3ad0823e568a]
description = "format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12"

[8db52cd9-9689-413f-a812-6c36fcfd0d07]
description = "format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13"

[b37c332d-7f68-40e3-8503-e43cbd67a0c4]
description = "format exceptional ordinal numeral 100"

Expand All @@ -65,3 +80,6 @@ description = "format non-exceptional ordinal numeral 112"

[06b62efe-199e-4ce7-970d-4bf73945713f]
description = "format exceptional ordinal numeral 123"

[6792c54e-59a7-4faf-839a-c4bb61014229]
description = "format large number 972 ending in nd even though it is a multiple of 12"
51 changes: 50 additions & 1 deletion exercises/practice/line-up/line_up.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:24+00:00
# generated on 2026-08-14T05:33:41+00:00

@test "format smallest non-exceptional ordinal numeral 4" {
# [[ $BATS_RUN_SKIPPED == "true" ]] || skip
Expand Down Expand Up @@ -115,6 +115,30 @@ load bats-extra
assert_output "Washi, you are the 21st customer we serve today. Thank you!"
}

@test "format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Ingrid" 22

assert_success
assert_output "Ingrid, you are the 22nd customer we serve today. Thank you!"
}

@test "format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Mario" 33

assert_success
assert_output "Mario, you are the 33rd customer we serve today. Thank you!"
}

@test "format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Quentin" 52

assert_success
assert_output "Quentin, you are the 52nd customer we serve today. Thank you!"
}

@test "format exceptional ordinal numeral 62" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Nayra" 62
Expand All @@ -123,6 +147,22 @@ load bats-extra
assert_output "Nayra, you are the 62nd customer we serve today. Thank you!"
}

@test "format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Ugo" 72

assert_success
assert_output "Ugo, you are the 72nd customer we serve today. Thank you!"
}

@test "format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Boris" 91

assert_success
assert_output "Boris, you are the 91st customer we serve today. Thank you!"
}

@test "format exceptional ordinal numeral 100" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "John" 100
Expand Down Expand Up @@ -154,3 +194,12 @@ load bats-extra
assert_success
assert_output "Yma, you are the 123rd customer we serve today. Thank you!"
}

@test "format large number 972 ending in nd even though it is a multiple of 12" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash line_up.sh "Elias" 972

assert_success
assert_output "Elias, you are the 972nd customer we serve today. Thank you!"
}