21 lines
310 B
Go
21 lines
310 B
Go
package zhipu_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
_ "apigo.cc/ai"
|
|
_ "apigo.cc/ai/zhipu"
|
|
"apigo.cc/gojs"
|
|
_ "apigo.cc/gojs/console"
|
|
"github.com/ssgo/u"
|
|
)
|
|
|
|
func TestAI(t *testing.T) {
|
|
gojs.ExportForDev()
|
|
r, err := gojs.RunFile("ai_test.js")
|
|
if err != nil {
|
|
t.Fatal(err.Error())
|
|
}
|
|
println(u.Cyan(u.JsonP(r)))
|
|
}
|