@@ -473,6 +473,11 @@ public final void testLeftToRightThenRightToLeft_EINSTEIN_MICHAELA_Returns0() {
473473 assertEquals (0 , this .getStringEncoder ().leftToRightThenRightToLeftProcessing ("EINSTEIN" , "MICHAELA" ));
474474 }
475475
476+ @ Test
477+ public final void testPunctuationOnly () {
478+ assertEquals (this .getStringEncoder ().encode (".,-" ), "" );
479+ }
480+
476481 @ Test
477482 public final void testRemoveDoubleConsonants_MISSISSIPPI_RemovedSuccessfully () {
478483 assertEquals ("MISISIPI" , this .getStringEncoder ().removeDoubleConsonants ("MISSISSIPPI" ));
@@ -498,25 +503,20 @@ public final void testRemoveVowel__DECLAN_Returns_DCLN() {
498503 assertEquals ("DCLN" , this .getStringEncoder ().removeVowels ("DECLAN" ));
499504 }
500505
506+ // ***** END REGION - TEST GET MRA COMPARISONS
507+
501508 @ Test
502509 public final void testRemoveVowel_ALESSANDRA_Returns_ALSSNDR () {
503510 assertEquals ("ALSSNDR" , this .getStringEncoder ().removeVowels ("ALESSANDRA" ));
504511 }
505512
506- // ***** END REGION - TEST GET MRA COMPARISONS
507-
508513 @ Test
509- public final void testPunctuationOnly () {
510- assertEquals (this .getStringEncoder ().encode (".,-" ), "" );
514+ public final void testVowelAndPunctuationOnly () {
515+ assertEquals (this .getStringEncoder ().encode ("uoiea .,-AEIOU " ), "U " );
511516 }
512517
513518 @ Test
514519 public final void testVowelOnly () {
515520 assertEquals (this .getStringEncoder ().encode ("aeiouAEIOU" ), "A" );
516521 }
517-
518- @ Test
519- public final void testVowelAndPunctuationOnly () {
520- assertEquals (this .getStringEncoder ().encode ("uoiea.,-AEIOU" ), "U" );
521- }
522522}
0 commit comments