在go中使用lua示例, 基于gopher-lua!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 rivejä
274 B

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