This commit is contained in:
苏尹岚
2021-04-20 16:50:27 +08:00
parent 7ab406d18f
commit f5385cceb9
3 changed files with 27 additions and 3 deletions

View File

@@ -27,8 +27,16 @@ func init() {
`)
}
func TestMiniCode(t *testing.T) {
result, err := api.MiniCode(2, strings.ToLower("EFA9876238FC11EB9101525400C36BDA"))
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestGenerateLink(t *testing.T) {
result, err := api.GenerateLink(2, strings.ToLower("EFA9876238FC11EB9101525400C36BDA"))
result, err := api.GenerateLink(2, 1,strings.ToLower("EFA9876238FC11EB9101525400C36BDA"))
if err != nil {
t.Fatal(err)
}