From 9141a0b157d1ef7b08a38e35ab7daec2b294ab73 Mon Sep 17 00:00:00 2001 From: mk-mxp <55182845+mk-mxp@users.noreply.github.com> Date: Wed, 12 Aug 2026 05:14:18 +0000 Subject: [PATCH 1/2] Add new tests to line-up --- exercises/practice/line-up/.meta/tests.toml | 18 +++++++ exercises/practice/line-up/LineUpTest.php | 60 +++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/exercises/practice/line-up/.meta/tests.toml b/exercises/practice/line-up/.meta/tests.toml index 36fdf1d0c..dd66fc158 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/LineUpTest.php b/exercises/practice/line-up/LineUpTest.php index 4f275216e..a2a59923a 100644 --- a/exercises/practice/line-up/LineUpTest.php +++ b/exercises/practice/line-up/LineUpTest.php @@ -152,6 +152,36 @@ public function testFormatExceptionalOrdinalNumeral21(): void ); } + /** uuid: a98e2e22-ab41-4557-a7c2-efedc19c16da */ + #[TestDox('format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11')] + public function testFormatExceptionalOrdinalNumeral22EndingInNdEvenThoughItIsAMultipleOf11(): void + { + $this->assertSame( + 'Ingrid, you are the 22nd customer we serve today. Thank you!', + format('Ingrid', 22) + ); + } + + /** uuid: ab45d2fb-e0ee-4016-b605-76917584db0a */ + #[TestDox('format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11')] + public function testFormatExceptionalOrdinalNumeral33EndingInRdEvenThoughItIsAMultipleOf11(): void + { + $this->assertSame( + 'Mario, you are the 33rd customer we serve today. Thank you!', + format('Mario', 33) + ); + } + + /** uuid: c9243603-9f17-45b3-9a41-db9ebdbf08e1 */ + #[TestDox('format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13')] + public function testFormatExceptionalOrdinalNumeral52EndingInNdEvenThoughItIsAMultipleOf13(): void + { + $this->assertSame( + 'Quentin, you are the 52nd customer we serve today. Thank you!', + format('Quentin', 52) + ); + } + /** uuid: 74ee2317-0295-49d2-baf0-d56bcefa14e3 */ #[TestDox('Format exceptional ordinal numeral 62')] public function testFormatExceptionalOrdinalNumeral62(): void @@ -162,6 +192,26 @@ public function testFormatExceptionalOrdinalNumeral62(): void ); } + /** uuid: 3f6c408c-4331-42b6-bb6c-3ad0823e568a */ + #[TestDox('format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12')] + public function testFormatNonExceptionalOrdinalNumeral72EndingInNdEvenThoughItIsAMultipleOf12(): void + { + $this->assertSame( + 'Ugo, you are the 72nd customer we serve today. Thank you!', + format('Ugo', 72) + ); + } + + /** uuid: 8db52cd9-9689-413f-a812-6c36fcfd0d07 */ + #[TestDox('format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13')] + public function testFormatExceptionalOrdinalNumeral91EndingInStEvenThoughItIsAMultipleOf13(): void + { + $this->assertSame( + 'Boris, you are the 91st customer we serve today. Thank you!', + format('Boris', 91) + ); + } + /** uuid: b37c332d-7f68-40e3-8503-e43cbd67a0c4 */ #[TestDox('Format exceptional ordinal numeral 100')] public function testFormatExceptionalOrdinalNumeral100(): void @@ -201,4 +251,14 @@ public function testFormatExceptionalOrdinalNumeral123(): void format('Yma', 123) ); } + + /** uuid: 6792c54e-59a7-4faf-839a-c4bb61014229 */ + #[TestDox('format large number 972 ending in nd even though it is a multiple of 12')] + public function testFormatLargeNumber972EndingInNdEvenThoughItIsAMultipleOf12(): void + { + $this->assertSame( + 'Elias, you are the 972nd customer we serve today. Thank you!', + format('Elias', 972) + ); + } } From 8733b0895dd6bf3ab43f707abd51fda6bd1ff974 Mon Sep 17 00:00:00 2001 From: mk-mxp <55182845+mk-mxp@users.noreply.github.com> Date: Wed, 12 Aug 2026 05:14:52 +0000 Subject: [PATCH 2/2] Fix auto-sync command to run online --- bin/auto-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/auto-sync.sh b/bin/auto-sync.sh index a8b102c9c..b46c3ae4c 100755 --- a/bin/auto-sync.sh +++ b/bin/auto-sync.sh @@ -3,7 +3,7 @@ if [[ "$#" != 0 ]]; then forwardedParameters=( "$@" ) else - forwardedParameters=( -o -u -y --docs --filepaths --metadata --tests include ) + forwardedParameters=( -u -y --docs --filepaths --metadata --tests include ) fi bin/configlet sync "${forwardedParameters[@]}"