This commit is contained in:
Looly
2021-03-18 21:16:14 +08:00
parent 825b5ea1b4
commit abdedf6822
9 changed files with 86 additions and 6 deletions

View File

@@ -39,6 +39,12 @@ public class PinyinUtilTest {
Assert.assertEquals("h, s, d, y, g", result);
}
@Test
public void getFirstLetterTest2(){
final String result = PinyinUtil.getFirstLetter("崞阳", ", ");
Assert.assertEquals("g, y", result);
}
@Test
public void getFirstLetterByPinyin4jTest(){
final Pinyin4jEngine engine = new Pinyin4jEngine();