24 lines
357 B
Go
24 lines
357 B
Go
package redis_test
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"apigo.cc/gojs"
|
|
_ "apigo.cc/gojs/console"
|
|
_ "apigo.cc/gojs/redis"
|
|
"github.com/ssgo/u"
|
|
)
|
|
|
|
func TestHash(t *testing.T) {
|
|
gojs.ExportForDev()
|
|
r, err := gojs.RunFile("redis_test.js")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else if r != true {
|
|
t.Fatal(r)
|
|
} else {
|
|
fmt.Println(u.BGreen("test succeess"))
|
|
}
|
|
}
|