diff options
Diffstat (limited to 'plugins_test.go')
-rw-r--r-- | plugins_test.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins_test.go b/plugins_test.go new file mode 100644 index 0000000..c6cd7ef --- /dev/null +++ b/plugins_test.go @@ -0,0 +1,23 @@ +package main + +import ( + "testing" + + lua "github.com/yuin/gopher-lua" +) + +func MetaTableTest(t *testing.T) { + luaState := lua.NewState() + defer luaState.Close() + + RegisterCustomLuaTypes(luaState) + + if err := luaState.DoString(` + config = toml_config.new() + print(config:IrcServer()) + config:TrcServer("irc.freenode.net") + print(config:IrcServer()) + `); err != nil { + t.Fatal(err) + } +} |