在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 line
268 B

4 年之前
  1. package json
  2. import (
  3. "testing"
  4. lua "github.com/yuin/gopher-lua"
  5. )
  6. func TestApi(t *testing.T) {
  7. state := lua.NewState()
  8. PreloadGo(state)
  9. if err := state.DoFile("../testScript/test_json_api.lua"); err != nil {
  10. t.Fatalf("execute test: %s\n", err.Error())
  11. }
  12. }