validation: cover nil/None return from lua_func/py_func
Two new steps per language: function returning nothing and function returning explicit nil/None. Both tagged $(test)_PASS — they would have failed before the lua nil fix (Lua side reported nil result as error). Python side already worked but is covered for parity.
This commit is contained in:
@@ -49,4 +49,12 @@ function module.test_delgd()
|
||||
return 0
|
||||
end
|
||||
|
||||
function module.return_nothing()
|
||||
-- Returns no value: ret is nil but no error.
|
||||
end
|
||||
|
||||
function module.return_explicit_nil()
|
||||
return nil
|
||||
end
|
||||
|
||||
return module
|
||||
Reference in New Issue
Block a user