在go中使用lua示例, 基于gopher-lua!
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
268 B

package json
import (
"testing"
lua "github.com/yuin/gopher-lua"
)
func TestApi(t *testing.T) {
state := lua.NewState()
PreloadGo(state)
if err := state.DoFile("../testScript/test_json_api.lua"); err != nil {
t.Fatalf("execute test: %s\n", err.Error())
}
}