11import org .junit .jupiter .api .BeforeEach ;
22import org .junit .jupiter .api .Disabled ;
3+ import org .junit .jupiter .api .DisplayName ;
34import org .junit .jupiter .api .Test ;
45
56import static org .assertj .core .api .Assertions .assertThat ;
@@ -14,138 +15,161 @@ public void setup() {
1415 }
1516
1617 @ Test
18+ @ DisplayName ("word beginning with a" )
1719 public void testWordBeginningWithA () {
1820 assertThat (pigLatinTranslator .translate ("apple" )).isEqualTo ("appleay" );
1921 }
2022
2123 @ Disabled ("Remove to run test" )
2224 @ Test
25+ @ DisplayName ("word beginning with e" )
2326 public void testWordBeginningWithE () {
2427 assertThat (pigLatinTranslator .translate ("ear" )).isEqualTo ("earay" );
2528 }
2629
2730 @ Disabled ("Remove to run test" )
2831 @ Test
32+ @ DisplayName ("word beginning with i" )
2933 public void testWordBeginningWithI () {
3034 assertThat (pigLatinTranslator .translate ("igloo" )).isEqualTo ("iglooay" );
3135 }
3236
3337 @ Disabled ("Remove to run test" )
3438 @ Test
39+ @ DisplayName ("word beginning with o" )
3540 public void testWordBeginningWithO () {
3641 assertThat (pigLatinTranslator .translate ("object" )).isEqualTo ("objectay" );
3742 }
3843
3944 @ Disabled ("Remove to run test" )
4045 @ Test
46+ @ DisplayName ("word beginning with u" )
4147 public void testWordBeginningWithU () {
4248 assertThat (pigLatinTranslator .translate ("under" )).isEqualTo ("underay" );
4349 }
4450
4551 @ Disabled ("Remove to run test" )
4652 @ Test
53+ @ DisplayName ("word beginning with a vowel and followed by a qu" )
4754 public void testWordBeginningWithVowelAndFollowedByQu () {
4855 assertThat (pigLatinTranslator .translate ("equal" )).isEqualTo ("equalay" );
4956 }
5057
5158 @ Disabled ("Remove to run test" )
5259 @ Test
60+ @ DisplayName ("word beginning with p" )
5361 public void testWordBeginningWithP () {
5462 assertThat (pigLatinTranslator .translate ("pig" )).isEqualTo ("igpay" );
5563 }
5664
5765 @ Disabled ("Remove to run test" )
5866 @ Test
67+ @ DisplayName ("word beginning with k" )
5968 public void testWordBeginningWithK () {
6069 assertThat (pigLatinTranslator .translate ("koala" )).isEqualTo ("oalakay" );
6170 }
6271
6372 @ Disabled ("Remove to run test" )
6473 @ Test
74+ @ DisplayName ("word beginning with x" )
6575 public void testWordBeginningWithX () {
6676 assertThat (pigLatinTranslator .translate ("xenon" )).isEqualTo ("enonxay" );
6777 }
6878
6979 @ Disabled ("Remove to run test" )
7080 @ Test
81+ @ DisplayName ("word beginning with q without a following u" )
7182 public void testWordBeginningWithQWithoutAFollowingU () {
7283 assertThat (pigLatinTranslator .translate ("qat" )).isEqualTo ("atqay" );
7384 }
7485
7586 @ Disabled ("Remove to run test" )
7687 @ Test
88+ @ DisplayName ("word beginning with consonant and vowel containing qu" )
7789 public void testWordBeginningWithConsonantAndVowelContainingQu () {
7890 assertThat (pigLatinTranslator .translate ("liquid" )).isEqualTo ("iquidlay" );
7991 }
8092
8193 @ Disabled ("Remove to run test" )
8294 @ Test
95+ @ DisplayName ("word beginning with ch" )
8396 public void testChTreatedLikeAConsonantAtTheBeginningOfAWord () {
8497 assertThat (pigLatinTranslator .translate ("chair" )).isEqualTo ("airchay" );
8598 }
8699
87100 @ Disabled ("Remove to run test" )
88101 @ Test
102+ @ DisplayName ("word beginning with qu" )
89103 public void testQuTreatedLikeAConsonantAtTheBeginningOfAWord () {
90104 assertThat (pigLatinTranslator .translate ("queen" )).isEqualTo ("eenquay" );
91105 }
92106
93107 @ Disabled ("Remove to run test" )
94108 @ Test
109+ @ DisplayName ("word beginning with qu and a preceding consonant" )
95110 public void testQuAndAPrecedingConsonantTreatedLikeAConsonantAtTheBeginningOfAWord () {
96111 assertThat (pigLatinTranslator .translate ("square" )).isEqualTo ("aresquay" );
97112 }
98113
99114 @ Disabled ("Remove to run test" )
100115 @ Test
116+ @ DisplayName ("word beginning with th" )
101117 public void testThTreatedLikeAConsonantAtTheBeginningOfAWord () {
102118 assertThat (pigLatinTranslator .translate ("therapy" )).isEqualTo ("erapythay" );
103119 }
104120
105121 @ Disabled ("Remove to run test" )
106122 @ Test
123+ @ DisplayName ("word beginning with thr" )
107124 public void testThrTreatedLikeAConsonantAtTheBeginningOfAWord () {
108125 assertThat (pigLatinTranslator .translate ("thrush" )).isEqualTo ("ushthray" );
109126 }
110127
111128 @ Disabled ("Remove to run test" )
112129 @ Test
130+ @ DisplayName ("word beginning with sch" )
113131 public void testSchTreatedLikeAConsonantAtTheBeginningOfAWord () {
114132 assertThat (pigLatinTranslator .translate ("school" )).isEqualTo ("oolschay" );
115133 }
116134
117135 @ Disabled ("Remove to run test" )
118136 @ Test
137+ @ DisplayName ("word beginning with yt" )
119138 public void testYtTreatedLikeAVowelAtTheBeginningOfAWord () {
120139 assertThat (pigLatinTranslator .translate ("yttria" )).isEqualTo ("yttriaay" );
121140 }
122141
123142 @ Disabled ("Remove to run test" )
124143 @ Test
144+ @ DisplayName ("word beginning with xr" )
125145 public void testXrTreatedLikeAVowelAtTheBeginningOfAWord () {
126146 assertThat (pigLatinTranslator .translate ("xray" )).isEqualTo ("xrayay" );
127147 }
128148
129149 @ Disabled ("Remove to run test" )
130150 @ Test
151+ @ DisplayName ("y is treated like a consonant at the beginning of a word" )
131152 public void testYTreatedLikeAConsonantAtTheBeginningOfAWord () {
132153 assertThat (pigLatinTranslator .translate ("yellow" )).isEqualTo ("ellowyay" );
133154 }
134155
135156 @ Disabled ("Remove to run test" )
136157 @ Test
158+ @ DisplayName ("y is treated like a vowel at the end of a consonant cluster" )
137159 public void testYTreatedLikeAVowelAtTheEndOfAConsonantCluster () {
138160 assertThat (pigLatinTranslator .translate ("rhythm" )).isEqualTo ("ythmrhay" );
139161 }
140162
141163 @ Disabled ("Remove to run test" )
142164 @ Test
165+ @ DisplayName ("y as second letter in two letter word" )
143166 public void testYAsSecondLetterInTwoLetterWord () {
144167 assertThat (pigLatinTranslator .translate ("my" )).isEqualTo ("ymay" );
145168 }
146169
147170 @ Disabled ("Remove to run test" )
148171 @ Test
172+ @ DisplayName ("a whole phrase" )
149173 public void testAWholePhrase () {
150174 assertThat (pigLatinTranslator .translate ("quick fast run" )).isEqualTo ("ickquay astfay unray" );
151175 }
0 commit comments