Solve a tuple error in Lua and unify Lua and Python tests

This commit is contained in:
2026-06-05 01:47:00 +02:00
parent 3fb982b057
commit 811e3d356e
7 changed files with 298 additions and 126 deletions

View File

@@ -12,12 +12,12 @@ function module.assertparam(param)
end
function module.checkglobal(param)
local res = tm.gd(param)
return res
assert(param=='test parameter')
return 0
end
function module.checkglobal2(index)
return tm.gd("lua_data_to_be_returned")[index]
return tm.gd("data_to_be_returned")[index+1]
end
function module.should_not_be_called(param)
@@ -53,7 +53,7 @@ function module.return_nothing()
-- Returns no value: ret is nil but no error.
end
function module.return_explicit_nil()
function module.return_explicit_none()
return nil
end