在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
274 B

4 년 전
  1. package strings
  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_strings_api.lua"); err != nil {
  10. t.Fatalf("execute test: %s\n", err.Error())
  11. }
  12. }