Skip to content

Commit

Permalink
添加繁体中文的测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
YacongGu authored and promeG committed Jan 23, 2017
1 parent 2530715 commit 72791c3
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,13 @@ public Map<String, String[]> mapping() {
assertThat(Pinyin.toPinyin(str, " "), is(expected));
}

@Test
public void testToPinyin_traditional_chars() throws BadHanyuPinyinOutputFormatCombination {
for (char c : TraditionalCharSet.All) {
assertThat(Pinyin.isChinese(c), is(true));
}
}

private static char[] allChars() {
char[] allChars = new char[Character.MAX_VALUE - Character.MIN_VALUE + 1];
int length = allChars.length;
Expand Down
Loading

0 comments on commit 72791c3

Please sign in to comment.