在go中使用lua示例, 基于gopher-lua!
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

15 wiersze
274 B

4 lat temu
  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. }