tracks/java/exercises/pig-latin/src/test/java/PigLatinTranslatorTest.java in trackler-2.2.1.104 vs tracks/java/exercises/pig-latin/src/test/java/PigLatinTranslatorTest.java in trackler-2.2.1.105
- old
+ new
@@ -21,16 +21,21 @@
{"ear", "earay"},
{"igloo", "iglooay"},
{"object", "objectay"},
{"under", "underay"},
+ // Word beginning with vowel follwed by a 'qu'
+ {"equal", "equalay"},
+
// First letter and ay are moved to the end of words that start with consonants
{"pig", "igpay"},
{"koala", "oalakay"},
- {"yellow", "ellowyay"},
{"xenon", "enonxay"},
+ // Word beginning with 'q' without a following 'u'
+ {"qat", "atqay"},
+
// Ch is treated like a single consonant
{"chair", "airchay"},
// Qu is treated like a single consonant
{"queen", "eenquay"},
@@ -50,9 +55,18 @@
// Yt is treated like a single vowel
{"yttria", "yttriaay"},
// Xr is treated like a single vowel
{"xray", "xrayay"},
+
+ // 'Y' is treated like a consonant at the beginning of a word
+ {"yellow", "ellowyay"},
+
+ // 'Y' is treated like a vowel at the end of a consonant cluster
+ {"rhythm", "ythmrhay"},
+
+ // 'Y' as second letter in a two letter word
+ {"my", "ymay"},
// Phrases are translated
{"quick fast run", "ickquay astfay unray"}
});
}