Skip to content

Commit 8988d13

Browse files
authored
Sync pig latin (#888)
* Replace section separator configlet now generates the whole test titles including sub titles. * Add new test
1 parent 612a384 commit 8988d13

File tree

2 files changed

+66
-47
lines changed

2 files changed

+66
-47
lines changed
Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,79 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[11567f84-e8c6-4918-aedb-435f0b73db57]
6-
description = "word beginning with a"
13+
description = "ay is added to words that start with vowels -> word beginning with a"
714

815
[f623f581-bc59-4f45-9032-90c3ca9d2d90]
9-
description = "word beginning with e"
16+
description = "ay is added to words that start with vowels -> word beginning with e"
1017

1118
[7dcb08b3-23a6-4e8a-b9aa-d4e859450d58]
12-
description = "word beginning with i"
19+
description = "ay is added to words that start with vowels -> word beginning with i"
1320

1421
[0e5c3bff-266d-41c8-909f-364e4d16e09c]
15-
description = "word beginning with o"
22+
description = "ay is added to words that start with vowels -> word beginning with o"
1623

1724
[614ba363-ca3c-4e96-ab09-c7320799723c]
18-
description = "word beginning with u"
25+
description = "ay is added to words that start with vowels -> word beginning with u"
1926

2027
[bf2538c6-69eb-4fa7-a494-5a3fec911326]
21-
description = "word beginning with a vowel and followed by a qu"
28+
description = "ay is added to words that start with vowels -> word beginning with a vowel and followed by a qu"
2229

2330
[e5be8a01-2d8a-45eb-abb4-3fcc9582a303]
24-
description = "word beginning with p"
31+
description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with p"
2532

2633
[d36d1e13-a7ed-464d-a282-8820cb2261ce]
27-
description = "word beginning with k"
34+
description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with k"
2835

2936
[d838b56f-0a89-4c90-b326-f16ff4e1dddc]
30-
description = "word beginning with x"
37+
description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with x"
3138

3239
[bce94a7a-a94e-4e2b-80f4-b2bb02e40f71]
33-
description = "word beginning with q without a following u"
40+
description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with q without a following u"
41+
42+
[e59dbbe8-ccee-4619-a8e9-ce017489bfc0]
43+
description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with consonant and vowel containing qu"
3444

3545
[c01e049a-e3e2-451c-bf8e-e2abb7e438b8]
36-
description = "word beginning with ch"
46+
description = "some letter clusters are treated like a single consonant -> word beginning with ch"
3747

3848
[9ba1669e-c43f-4b93-837a-cfc731fd1425]
39-
description = "word beginning with qu"
49+
description = "some letter clusters are treated like a single consonant -> word beginning with qu"
4050

4151
[92e82277-d5e4-43d7-8dd3-3a3b316c41f7]
42-
description = "word beginning with qu and a preceding consonant"
52+
description = "some letter clusters are treated like a single consonant -> word beginning with qu and a preceding consonant"
4353

4454
[79ae4248-3499-4d5b-af46-5cb05fa073ac]
45-
description = "word beginning with th"
55+
description = "some letter clusters are treated like a single consonant -> word beginning with th"
4656

4757
[e0b3ae65-f508-4de3-8999-19c2f8e243e1]
48-
description = "word beginning with thr"
58+
description = "some letter clusters are treated like a single consonant -> word beginning with thr"
4959

5060
[20bc19f9-5a35-4341-9d69-1627d6ee6b43]
51-
description = "word beginning with sch"
61+
description = "some letter clusters are treated like a single consonant -> word beginning with sch"
5262

5363
[54b796cb-613d-4509-8c82-8fbf8fc0af9e]
54-
description = "word beginning with yt"
64+
description = "some letter clusters are treated like a single vowel -> word beginning with yt"
5565

5666
[8c37c5e1-872e-4630-ba6e-d20a959b67f6]
57-
description = "word beginning with xr"
67+
description = "some letter clusters are treated like a single vowel -> word beginning with xr"
5868

5969
[a4a36d33-96f3-422c-a233-d4021460ff00]
60-
description = "y is treated like a consonant at the beginning of a word"
70+
description = "position of y in a word determines if it is a consonant or a vowel -> y is treated like a consonant at the beginning of a word"
6171

6272
[adc90017-1a12-4100-b595-e346105042c7]
63-
description = "y is treated like a vowel at the end of a consonant cluster"
73+
description = "position of y in a word determines if it is a consonant or a vowel -> y is treated like a vowel at the end of a consonant cluster"
6474

6575
[29b4ca3d-efe5-4a95-9a54-8467f2e5e59a]
66-
description = "y as second letter in two letter word"
76+
description = "position of y in a word determines if it is a consonant or a vowel -> y as second letter in two letter word"
6777

6878
[44616581-5ce3-4a81-82d0-40c7ab13d2cf]
69-
description = "a whole phrase"
79+
description = "phrases are translated -> a whole phrase"

exercises/practice/pig-latin/PigLatinTest.php

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static function setUpBeforeClass(): void
1111

1212
/**
1313
* uuid 11567f84-e8c6-4918-aedb-435f0b73db57
14-
* @testdox ay is added to words that start with vowels - word beginning with a
14+
* @testdox ay is added to words that start with vowels -> word beginning with a
1515
*/
1616
public function testWordBeginningWithA(): void
1717
{
@@ -20,7 +20,7 @@ public function testWordBeginningWithA(): void
2020

2121
/**
2222
* uuid f623f581-bc59-4f45-9032-90c3ca9d2d90
23-
* @testdox ay is added to words that start with vowels - word beginning with e
23+
* @testdox ay is added to words that start with vowels -> word beginning with e
2424
*/
2525
public function testWordBeginningWithE(): void
2626
{
@@ -29,7 +29,7 @@ public function testWordBeginningWithE(): void
2929

3030
/**
3131
* uuid 7dcb08b3-23a6-4e8a-b9aa-d4e859450d58
32-
* @testdox ay is added to words that start with vowels - word beginning with i
32+
* @testdox ay is added to words that start with vowels -> word beginning with i
3333
*/
3434
public function testWordBeginningWithI(): void
3535
{
@@ -38,7 +38,7 @@ public function testWordBeginningWithI(): void
3838

3939
/**
4040
* uuid 0e5c3bff-266d-41c8-909f-364e4d16e09c
41-
* @testdox ay is added to words that start with vowels - word beginning with o
41+
* @testdox ay is added to words that start with vowels -> word beginning with o
4242
*/
4343
public function testWordBeginningWithO(): void
4444
{
@@ -47,7 +47,7 @@ public function testWordBeginningWithO(): void
4747

4848
/**
4949
* uuid 614ba363-ca3c-4e96-ab09-c7320799723c
50-
* @testdox ay is added to words that start with vowels - word beginning with u
50+
* @testdox ay is added to words that start with vowels -> word beginning with u
5151
*/
5252
public function testWordBeginningWithU(): void
5353
{
@@ -56,7 +56,7 @@ public function testWordBeginningWithU(): void
5656

5757
/**
5858
* uuid bf2538c6-69eb-4fa7-a494-5a3fec911326
59-
* @testdox ay is added to words that start with vowels - word beginning with a vowel and followed by a qu
59+
* @testdox ay is added to words that start with vowels -> word beginning with a vowel and followed by a qu
6060
*/
6161
public function testWordBeginningVowelFollowedByQu(): void
6262
{
@@ -65,7 +65,7 @@ public function testWordBeginningVowelFollowedByQu(): void
6565

6666
/**
6767
* uuid e5be8a01-2d8a-45eb-abb4-3fcc9582a303
68-
* @testdox First letter and ay are moved to the end of words that start with consonants - word beginning with p
68+
* @testdox First letter and ay are moved to the end of words that start with consonants -> word beginning with p
6969
*/
7070
public function testWordBeginningWithP(): void
7171
{
@@ -74,7 +74,7 @@ public function testWordBeginningWithP(): void
7474

7575
/**
7676
* uuid d36d1e13-a7ed-464d-a282-8820cb2261ce
77-
* @testdox First letter and ay are moved to the end of words that start with consonants - word beginning with k
77+
* @testdox First letter and ay are moved to the end of words that start with consonants -> word beginning with k
7878
*/
7979
public function testWordBeginningWithK(): void
8080
{
@@ -83,7 +83,7 @@ public function testWordBeginningWithK(): void
8383

8484
/**
8585
* uuid d838b56f-0a89-4c90-b326-f16ff4e1dddc
86-
* @testdox First letter and ay are moved to the end of words that start with consonants - word beginning with x
86+
* @testdox First letter and ay are moved to the end of words that start with consonants -> word beginning with x
8787
*/
8888
public function testWordBeginningWithX(): void
8989
{
@@ -92,16 +92,25 @@ public function testWordBeginningWithX(): void
9292

9393
/**
9494
* uuid bce94a7a-a94e-4e2b-80f4-b2bb02e40f71
95-
* @testdox First letter and ay are moved to the end of words that start with consonants - word beginning with q without a following u
95+
* @testdox First letter and ay are moved to the end of words that start with consonants -> word beginning with q without a following u
9696
*/
9797
public function testWordBeginningWithQWithoutAFollowingU(): void
9898
{
9999
$this->assertEquals("atqay", translate("qat"));
100100
}
101101

102+
/**
103+
* uuid e59dbbe8-ccee-4619-a8e9-ce017489bfc0
104+
* @testdox First letter and ay are moved to the end of words that start with consonants -> word beginning with consonant and vowel containing qu
105+
*/
106+
public function testWordBeginningWithConsonantAndVowelContainingQu(): void
107+
{
108+
$this->assertEquals("iquidlay", translate("liquid"));
109+
}
110+
102111
/**
103112
* uuid c01e049a-e3e2-451c-bf8e-e2abb7e438b8
104-
* @testdox Some letter clusters are treated like a single consonant - word beginning with ch
113+
* @testdox Some letter clusters are treated like a single consonant -> word beginning with ch
105114
*/
106115
public function testWordBeginningWithCh(): void
107116
{
@@ -110,7 +119,7 @@ public function testWordBeginningWithCh(): void
110119

111120
/**
112121
* uuid 9ba1669e-c43f-4b93-837a-cfc731fd1425
113-
* @testdox Some letter clusters are treated like a single consonant - word beginning with qu
122+
* @testdox Some letter clusters are treated like a single consonant -> word beginning with qu
114123
*/
115124
public function testWordBeginningWithQu(): void
116125
{
@@ -119,7 +128,7 @@ public function testWordBeginningWithQu(): void
119128

120129
/**
121130
* uuid 92e82277-d5e4-43d7-8dd3-3a3b316c41f7
122-
* @testdox Some letter clusters are treated like a single consonant - word beginning with qu and a preceding consonant
131+
* @testdox Some letter clusters are treated like a single consonant -> word beginning with qu and a preceding consonant
123132
*/
124133
public function testWordBeginningWithQuAndAPrecedingConsonant(): void
125134
{
@@ -128,7 +137,7 @@ public function testWordBeginningWithQuAndAPrecedingConsonant(): void
128137

129138
/**
130139
* uuid 79ae4248-3499-4d5b-af46-5cb05fa073ac
131-
* @testdox Some letter clusters are treated like a single consonant - word beginning with th
140+
* @testdox Some letter clusters are treated like a single consonant -> word beginning with th
132141
*/
133142
public function testWordBeginningWithTh(): void
134143
{
@@ -137,7 +146,7 @@ public function testWordBeginningWithTh(): void
137146

138147
/**
139148
* uuid e0b3ae65-f508-4de3-8999-19c2f8e243e1
140-
* @testdox Some letter clusters are treated like a single consonant - word beginning with thr
149+
* @testdox Some letter clusters are treated like a single consonant -> word beginning with thr
141150
*/
142151
public function testWordBeginningWithThr(): void
143152
{
@@ -146,7 +155,7 @@ public function testWordBeginningWithThr(): void
146155

147156
/**
148157
* uuid 20bc19f9-5a35-4341-9d69-1627d6ee6b43
149-
* @testdox Some letter clusters are treated like a single consonant - word beginning with sch
158+
* @testdox Some letter clusters are treated like a single consonant -> word beginning with sch
150159
*/
151160
public function testWordBeginningWithSch(): void
152161
{
@@ -155,7 +164,7 @@ public function testWordBeginningWithSch(): void
155164

156165
/**
157166
* uuid 54b796cb-613d-4509-8c82-8fbf8fc0af9e
158-
* @testdox Some letter clusters are treated like a single vowel - word beginning with yt
167+
* @testdox Some letter clusters are treated like a single vowel -> word beginning with yt
159168
*/
160169
public function testWordBeginningWithYt(): void
161170
{
@@ -164,7 +173,7 @@ public function testWordBeginningWithYt(): void
164173

165174
/**
166175
* uuid 8c37c5e1-872e-4630-ba6e-d20a959b67f6
167-
* @testdox Some letter clusters are treated like a single vowel - word beginning with xr
176+
* @testdox Some letter clusters are treated like a single vowel -> word beginning with xr
168177
*/
169178
public function testWordBeginningWithXr(): void
170179
{
@@ -174,7 +183,7 @@ public function testWordBeginningWithXr(): void
174183

175184
/**
176185
* uuid a4a36d33-96f3-422c-a233-d4021460ff00
177-
* @testdox Position of y in a word determines if it is a consonant or a vowel - y is treated like a consonant at the beginning of a word
186+
* @testdox Position of y in a word determines if it is a consonant or a vowel -> y is treated like a consonant at the beginning of a word
178187
*/
179188
public function testWordBeginningWithY(): void
180189
{
@@ -183,7 +192,7 @@ public function testWordBeginningWithY(): void
183192

184193
/**
185194
* uuid adc90017-1a12-4100-b595-e346105042c7
186-
* @testdox Position of y in a word determines if it is a consonant or a vowel - y is treated like a vowel at the end of a consonant cluster
195+
* @testdox Position of y in a word determines if it is a consonant or a vowel -> y is treated like a vowel at the end of a consonant cluster
187196
*/
188197
public function testWordBeginningWithConsonantClusterThenY(): void
189198
{
@@ -192,7 +201,7 @@ public function testWordBeginningWithConsonantClusterThenY(): void
192201

193202
/**
194203
* uuid 29b4ca3d-efe5-4a95-9a54-8467f2e5e59a
195-
* @testdox Position of y in a word determines if it is a consonant or a vowel - y as second letter in two letter word
204+
* @testdox Position of y in a word determines if it is a consonant or a vowel -> y as second letter in two letter word
196205
*/
197206
public function testTwoLetterWordWithY(): void
198207
{
@@ -202,7 +211,7 @@ public function testTwoLetterWordWithY(): void
202211

203212
/**
204213
* uuid 44616581-5ce3-4a81-82d0-40c7ab13d2cf
205-
* @testdox Phrases are translated - a whole phrase
214+
* @testdox Phrases are translated -> a whole phrase
206215
*/
207216
public function testAWholePhrase(): void
208217
{

0 commit comments

Comments
 (0)