|
|
@@ -23,12 +23,17 @@ public class PigLatinTranslatorTest {
|
|
23
|
23
|
{"object", "objectay"},
|
|
24
|
24
|
{"under", "underay"},
|
|
25
|
25
|
|
|
|
26
|
+ // Word beginning with vowel follwed by a 'qu'
|
|
|
27
|
+ {"equal", "equalay"},
|
|
|
28
|
+
|
|
26
|
29
|
// First letter and ay are moved to the end of words that start with consonants
|
|
27
|
30
|
{"pig", "igpay"},
|
|
28
|
31
|
{"koala", "oalakay"},
|
|
29
|
|
- {"yellow", "ellowyay"},
|
|
30
|
32
|
{"xenon", "enonxay"},
|
|
31
|
33
|
|
|
|
34
|
+ // Word beginning with 'q' without a following 'u'
|
|
|
35
|
+ {"qat", "atqay"},
|
|
|
36
|
+
|
|
32
|
37
|
// Ch is treated like a single consonant
|
|
33
|
38
|
{"chair", "airchay"},
|
|
34
|
39
|
|
|
|
@@ -53,6 +58,15 @@ public class PigLatinTranslatorTest {
|
|
53
|
58
|
// Xr is treated like a single vowel
|
|
54
|
59
|
{"xray", "xrayay"},
|
|
55
|
60
|
|
|
|
61
|
+ // 'Y' is treated like a consonant at the beginning of a word
|
|
|
62
|
+ {"yellow", "ellowyay"},
|
|
|
63
|
+
|
|
|
64
|
+ // 'Y' is treated like a vowel at the end of a consonant cluster
|
|
|
65
|
+ {"rhythm", "ythmrhay"},
|
|
|
66
|
+
|
|
|
67
|
+ // 'Y' as second letter in a two letter word
|
|
|
68
|
+ {"my", "ymay"},
|
|
|
69
|
+
|
|
56
|
70
|
// Phrases are translated
|
|
57
|
71
|
{"quick fast run", "ickquay astfay unray"}
|
|
58
|
72
|
});
|