Updated test.lua withe more tests

This commit is contained in:
ketank-new 2017-01-02 13:56:40 +05:30 committed by GitHub
parent 703398877b
commit 700f0e75c1

View File

@ -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("********************************************")