23 lines
360 B
Go
23 lines
360 B
Go
|
package textin_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
_ "apigo.cc/ai"
|
||
|
_ "apigo.cc/ai/textin"
|
||
|
"apigo.cc/gojs"
|
||
|
_ "apigo.cc/gojs/console"
|
||
|
_ "apigo.cc/gojs/file"
|
||
|
_ "apigo.cc/gojs/util"
|
||
|
"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)))
|
||
|
}
|