From 226e79434842626346ae378f408531d2d19059c7 Mon Sep 17 00:00:00 2001 From: “pengxuanzheng” Date: Mon, 4 Jul 2022 08:48:52 +0000 Subject: ✨ feat(TSG-11123): 增加单元测试 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gtest/script/call_cfunction.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gtest/script/call_cfunction.lua (limited to 'gtest/script/call_cfunction.lua') 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 -- cgit v1.2.3