aa
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtunionapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -27,11 +28,11 @@ func init() {
|
||||
}
|
||||
|
||||
func TestGenerateLink(t *testing.T) {
|
||||
_, err := api.GenerateLink(2, strings.ToLower("EFA9876238FC11EB9101525400C36BDA"))
|
||||
result, err := api.GenerateLink(2, strings.ToLower("EFA9876238FC11EB9101525400C36BDA"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestActivityList(t *testing.T) {
|
||||
@@ -39,5 +40,9 @@ func TestActivityList(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _ , v := range result {
|
||||
fmt.Println(utils.Str2Time(v.DateBound[:strings.LastIndex(v.DateBound, "至")-1]))
|
||||
fmt.Println(utils.Str2Time(v.DateBound[strings.LastIndex(v.DateBound, "至")+4:]))
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user