summaryrefslogtreecommitdiff
path: root/gtest/script/call_cfunction.lua
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-07-04 08:48:52 +0000
committer“pengxuanzheng” <[email protected]>2022-07-04 08:48:52 +0000
commit226e79434842626346ae378f408531d2d19059c7 (patch)
tree045c0392d14baac7f75a960f583269864c66e8a0 /gtest/script/call_cfunction.lua
parent512e852a76af00389c3340029144777aa7e69466 (diff)
✨ feat(TSG-11123): 增加单元测试
Diffstat (limited to 'gtest/script/call_cfunction.lua')
-rw-r--r--gtest/script/call_cfunction.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtest/script/call_cfunction.lua b/gtest/script/call_cfunction.lua
new file mode 100644
index 0000000..4315297
--- /dev/null
+++ b/gtest/script/call_cfunction.lua
@@ -0,0 +1,6 @@
+local data = TSG.data
+
+local str = TSG.get.get_hello()
+
+local ret = TSG.set.set_world(str)
+return string.len(ret), ret \ No newline at end of file