Skip to content

Commit

Permalink
New "qu" test for Pig Latin (#2507)
Browse files Browse the repository at this point in the history
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”
  • Loading branch information
glennj authored Dec 5, 2024
1 parent 70a10ea commit d11557d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exercises/pig-latin/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
"phrase": "qat"
},
"expected": "atqay"
},
{
"uuid": "e59dbbe8-ccee-4619-a8e9-ce017489bfc0",
"description": "word beginning with consonant and vowel containing qu",
"property": "translate",
"input": {
"phrase": "liquid"
},
"expected": "iquidlay"
}
]
},
Expand Down

0 comments on commit d11557d

Please sign in to comment.