Skip to content

Commit 2cef790

Browse files
committed
CODEC-308 : add test case for trailing S to avoid empty string
1 parent 46b6a60 commit 2cef790

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/test/java/org/apache/commons/codec/language/NysiisTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
package org.apache.commons.codec.language;
1919

20-
import static org.junit.jupiter.api.Assertions.assertEquals;
21-
import static org.junit.jupiter.api.Assertions.assertTrue;
22-
2320
import org.apache.commons.codec.AbstractStringEncoderTest;
2421
import org.junit.jupiter.api.Test;
2522

23+
import static org.junit.jupiter.api.Assertions.assertEquals;
24+
import static org.junit.jupiter.api.Assertions.assertTrue;
25+
2626
/**
2727
* Tests {@link Nysiis}
2828
*/
@@ -137,7 +137,8 @@ void testDropBy() {
137137
// violates 6: if the last two characters are AY, remove A
138138
new String[] { "CARRAWAY", "CARY" }, // Original: CARAY
139139
new String[] { "YAMADA", "YANAD" },
140-
new String[] { "ASH", "A"});
140+
new String[] { "ASH", "A"},
141+
new String[] { "SSH", "S"});
141142
}
142143

143144
@Test

0 commit comments

Comments
 (0)