Skip to content

Commit d11557d

Browse files
authored
New "qu" test for Pig Latin (#2507)
I’m seeing some solutions that do this: if word starts with a vowel or “xr” or “yt”, then return word + “ay” else if word contains “qu” then … Those solutions will fail for a word like “liquid”
1 parent 70a10ea commit d11557d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

exercises/pig-latin/canonical-data.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@
9898
"phrase": "qat"
9999
},
100100
"expected": "atqay"
101+
},
102+
{
103+
"uuid": "e59dbbe8-ccee-4619-a8e9-ce017489bfc0",
104+
"description": "word beginning with consonant and vowel containing qu",
105+
"property": "translate",
106+
"input": {
107+
"phrase": "liquid"
108+
},
109+
"expected": "iquidlay"
101110
}
102111
]
103112
},

0 commit comments

Comments
 (0)