package money import ( "testing" ) func TestYuan2Fen(t *testing.T) { if int(Yuan2Fen(1.2)) != 120 { t.Fatal("元转换为分错误") } }