Kepler core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
330 B

package pinyin
import (
"testing"
)
func TestGetPinyin(t *testing.T) {
s := "中华人民共和国 HELLO 猎毒人"
for _, x := range GetPinyin(s) {
t.Log(">>>", x)
}
}
func TestGetPinyinInitial(t *testing.T) {
s := "中华人民共和国 HELLO 猎毒人"
for _, x := range GetPinyinInitial(s) {
t.Log(">>>", x)
}
}