Add delgd validation test for py_func and lua_func

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-24 10:18:31 +02:00
parent d26b60435b
commit 609ca57202
4 changed files with 27 additions and 0 deletions

View File

@@ -41,4 +41,12 @@ function module.get_context_value()
return tm.gd("_lua_ctx_test_value")
end
function module.test_delgd()
tm.setgd("_lua_delgd_test", 42)
assert(tm.gd("_lua_delgd_test") == 42)
tm.delgd("_lua_delgd_test")
assert(tm.gd("_lua_delgd_test") == nil)
return 0
end
return module

View File

@@ -180,6 +180,12 @@
func_name: tuple_return
param: [ 0, "OK" ]
- lua_func:
name: delgd test
key: $(test)_PASS
file: $(test_path)$(psep)lua_func.lua
func_name: test_delgd
- group:
name: context_id tests
steps: