1
0
mirror of https://github.com/fumiama/emozi.git synced 2026-07-01 09:20:24 +08:00

feat(coder): finish decode

This commit is contained in:
源文雨
2024-02-15 15:28:57 +09:00
parent f7cc2d15d0
commit 96223b1b74
10 changed files with 883 additions and 509 deletions

View File

@@ -1,6 +1,18 @@
package emozi
import "testing"
import (
"strings"
"testing"
)
func TestShengmuString(t *testing.T) {
for i := 0; i < len(声母); i++ {
t.Log(声母枚举(i).String())
if 声母枚举(i).String() != strings.TrimSpace(声母枚举(i).String()) {
t.Fatal("声母: '", 声母枚举(i), "'")
}
}
}
func TestSplitPinyin(t *testing.T) {
s, y, tone, err := SplitPinyin("yōng")