Skip to content

Commit ae1477a

Browse files
authored
[line-up] configlet sync tests and regenerate (#3166)
1 parent c7dc3db commit ae1477a

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

exercises/practice/line-up/.meta/tests.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,24 @@ description = "format non-exceptional ordinal numeral 13"
5151
[2bdcebc5-c029-4874-b6cc-e9bec80d603a]
5252
description = "format exceptional ordinal numeral 21"
5353

54+
[a98e2e22-ab41-4557-a7c2-efedc19c16da]
55+
description = "format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11"
56+
57+
[ab45d2fb-e0ee-4016-b605-76917584db0a]
58+
description = "format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11"
59+
60+
[c9243603-9f17-45b3-9a41-db9ebdbf08e1]
61+
description = "format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13"
62+
5463
[74ee2317-0295-49d2-baf0-d56bcefa14e3]
5564
description = "format exceptional ordinal numeral 62"
5665

66+
[3f6c408c-4331-42b6-bb6c-3ad0823e568a]
67+
description = "format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12"
68+
69+
[8db52cd9-9689-413f-a812-6c36fcfd0d07]
70+
description = "format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13"
71+
5772
[b37c332d-7f68-40e3-8503-e43cbd67a0c4]
5873
description = "format exceptional ordinal numeral 100"
5974

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

6681
[06b62efe-199e-4ce7-970d-4bf73945713f]
6782
description = "format exceptional ordinal numeral 123"
83+
84+
[6792c54e-59a7-4faf-839a-c4bb61014229]
85+
description = "format large number 972 ending in nd even though it is a multiple of 12"

exercises/practice/line-up/cases_test.go

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lineup
33
// This is an auto-generated file. Do not change it manually. Run the generator to update the file.
44
// See https://github.com/exercism/go#synchronizing-tests-and-instructions
55
// Source: exercism/problem-specifications
6-
// Commit: 25c2ae5 build(deps): bump fast-uri from 3.1.0 to 3.1.2 (#2653)
6+
// Commit: 03f8331 line-up: add test cases for ordinal numbers that are multiples of 11/12/13 and update the descriptions (#2672)
77

88
type testCase struct {
99
description string
@@ -97,12 +97,42 @@ var testCases = []testCase{
9797
number: 21,
9898
expected: "Washi, you are the 21st customer we serve today. Thank you!",
9999
},
100+
{
101+
description: "format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11",
102+
name: "Ingrid",
103+
number: 22,
104+
expected: "Ingrid, you are the 22nd customer we serve today. Thank you!",
105+
},
106+
{
107+
description: "format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11",
108+
name: "Mario",
109+
number: 33,
110+
expected: "Mario, you are the 33rd customer we serve today. Thank you!",
111+
},
112+
{
113+
description: "format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13",
114+
name: "Quentin",
115+
number: 52,
116+
expected: "Quentin, you are the 52nd customer we serve today. Thank you!",
117+
},
100118
{
101119
description: "format exceptional ordinal numeral 62",
102120
name: "Nayra",
103121
number: 62,
104122
expected: "Nayra, you are the 62nd customer we serve today. Thank you!",
105123
},
124+
{
125+
description: "format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12",
126+
name: "Ugo",
127+
number: 72,
128+
expected: "Ugo, you are the 72nd customer we serve today. Thank you!",
129+
},
130+
{
131+
description: "format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13",
132+
name: "Boris",
133+
number: 91,
134+
expected: "Boris, you are the 91st customer we serve today. Thank you!",
135+
},
106136
{
107137
description: "format exceptional ordinal numeral 100",
108138
name: "John",
@@ -127,4 +157,10 @@ var testCases = []testCase{
127157
number: 123,
128158
expected: "Yma, you are the 123rd customer we serve today. Thank you!",
129159
},
160+
{
161+
description: "format large number 972 ending in nd even though it is a multiple of 12",
162+
name: "Elias",
163+
number: 972,
164+
expected: "Elias, you are the 972nd customer we serve today. Thank you!",
165+
},
130166
}

0 commit comments

Comments
 (0)