Пример #1
0
func log(t *testing.T) lua.Function {
	return func(l *lua.State) int {
		args := util.MustPullVarargs(l, 1)
		t.Log(args)
		return 0
	}
}
Пример #2
0
func error_(t *testing.T) lua.Function {
	return func(l *lua.State) int {
		args := util.MustPullVarargs(l, 1)
		t.Error(args)
		return 0
	}
}
Пример #3
0
func fatalf(t *testing.T) lua.Function {
	return func(l *lua.State) int {
		format := lua.CheckString(l, 1)
		args := util.MustPullVarargs(l, 2)
		t.Fatalf(format, args)
		return 0
	}
}