summaryrefslogtreecommitdiff
path: root/gtest/script/get_other.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gtest/script/get_other.lua')
-rw-r--r--gtest/script/get_other.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtest/script/get_other.lua b/gtest/script/get_other.lua
new file mode 100644
index 0000000..02c1fa7
--- /dev/null
+++ b/gtest/script/get_other.lua
@@ -0,0 +1,14 @@
+local data = TSG.data
+local result = "true"
+if not TSG.get.get_result() then
+ result = "false"
+end
+
+local flag = "not nil"
+if not TSG.get.get_nil() then
+ flag = "is nil"
+end
+
+local str = string.format("result:%s, time:%d, %s", result, TSG.get.get_time(), flag)
+
+return string.len(str), str \ No newline at end of file