From 700f0e75c18c77f099b9b46b1fa05e07c4a066f3 Mon Sep 17 00:00:00 2001 From: ketank-new Date: Mon, 2 Jan 2017 13:56:40 +0530 Subject: [PATCH] Updated test.lua withe more tests --- test/test.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/test.lua b/test/test.lua index fcb3d979..2d636a7a 100644 --- a/test/test.lua +++ b/test/test.lua @@ -50,6 +50,11 @@ a = "one string" b = string.gsub(a, "one", "another") print(b) print(a) + +print("a=10;b=tostring(a);print(b)") +a=10 +b=tostring(a) +print(b) print("***************") @@ -82,3 +87,12 @@ print(not false) print(not 0) print(not not nil) print("********************************************") + + +print("**********Functions*****************") +print("function twice(x) return 2*x end") +b=twice(3) +print(b) +print("********************************************") + +