From 6181b1e298d0975382951daa760d2ab86da1ddc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Wed, 2 Sep 2026 07:23:22 -0700 Subject: [PATCH 1/2] Sync `line-up` tests --- exercises/practice/line-up/.meta/tests.toml | 18 +++++++++++++ exercises/practice/line-up/runtests.jl | 30 +++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/exercises/practice/line-up/.meta/tests.toml b/exercises/practice/line-up/.meta/tests.toml index 36fdf1d0..dd66fc15 100644 --- a/exercises/practice/line-up/.meta/tests.toml +++ b/exercises/practice/line-up/.meta/tests.toml @@ -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" @@ -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" diff --git a/exercises/practice/line-up/runtests.jl b/exercises/practice/line-up/runtests.jl index a2a658af..2c39ce4f 100644 --- a/exercises/practice/line-up/runtests.jl +++ b/exercises/practice/line-up/runtests.jl @@ -77,11 +77,36 @@ include("line-up.jl") "Washi, you are the 21st customer we serve today. Thank you!" end + @testset "format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11" begin + @test line_up("Ingrid", 22) == + "Ingrid, you are the 22nd customer we serve today. Thank you!" + end + + @testset "format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11" begin + @test line_up("Mario", 33) == + "Mario, you are the 33rd customer we serve today. Thank you!" + end + + @testset "format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13" begin + @test line_up("Quentin", 52) == + "Quentin, you are the 52nd customer we serve today. Thank you!" + end + @testset "format exceptional ordinal numeral 62" begin @test line_up("Nayra", 62) == "Nayra, you are the 62nd customer we serve today. Thank you!" end + @testset "format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12" begin + @test line_up("Ugo", 72) == + "Ugo, you are the 72nd customer we serve today. Thank you!" + end + + @testset "format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13" begin + @test line_up("Boris", 91) == + "Boris, you are the 91st customer we serve today. Thank you!" + end + @testset "format exceptional ordinal numeral 100" begin @test line_up("John", 100) == "John, you are the 100th customer we serve today. Thank you!" @@ -101,4 +126,9 @@ include("line-up.jl") @test line_up("Yma", 123) == "Yma, you are the 123rd customer we serve today. Thank you!" end + + @testset "format large number 972 ending in nd even though it is a multiple of 12" begin + @test line_up("Elias", 972) == + "Elias, you are the 972nd customer we serve today. Thank you!" + end end From ffa12df3cae06ac4a588dd90e1d917078232088b Mon Sep 17 00:00:00 2001 From: Colin Leach Date: Wed, 2 Sep 2026 10:02:25 -0700 Subject: [PATCH 2/2] re-generate tests --- exercises/practice/line-up/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/line-up/runtests.jl b/exercises/practice/line-up/runtests.jl index 2c39ce4f..7fb9cc81 100644 --- a/exercises/practice/line-up/runtests.jl +++ b/exercises/practice/line-up/runtests.jl @@ -1,6 +1,6 @@ # These tests are auto-generated with test data from: # https://github.com/exercism/problem-specifications/tree/main/exercises/line-up/canonical-data.json -# File last updated on 2026-07-27 +# File last updated on 2026-09-02 using Test