mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Updated test.lua withe more tests
This commit is contained in:
parent
703398877b
commit
700f0e75c1
@ -50,6 +50,11 @@ a = "one string"
|
|||||||
b = string.gsub(a, "one", "another")
|
b = string.gsub(a, "one", "another")
|
||||||
print(b)
|
print(b)
|
||||||
print(a)
|
print(a)
|
||||||
|
|
||||||
|
print("a=10;b=tostring(a);print(b)")
|
||||||
|
a=10
|
||||||
|
b=tostring(a)
|
||||||
|
print(b)
|
||||||
print("***************")
|
print("***************")
|
||||||
|
|
||||||
|
|
||||||
@ -82,3 +87,12 @@ print(not false)
|
|||||||
print(not 0)
|
print(not 0)
|
||||||
print(not not nil)
|
print(not not nil)
|
||||||
print("********************************************")
|
print("********************************************")
|
||||||
|
|
||||||
|
|
||||||
|
print("**********Functions*****************")
|
||||||
|
print("function twice(x) return 2*x end")
|
||||||
|
b=twice(3)
|
||||||
|
print(b)
|
||||||
|
print("********************************************")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user