chinese_test.go 152 B

1234567891011
  1. package chinese
  2. import (
  3. "testing"
  4. )
  5. func TestFirstPinYin(t *testing.T) {
  6. if "C" != FirstPinYin("测试") {
  7. t.Fatal("首字母拼音错误")
  8. }
  9. }