mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Added test for OS based functions
This commit is contained in:
parent
1fe2176241
commit
b92584b497
@ -174,3 +174,10 @@ io.write("Random number between 1 and 100 is ",math.random(1,100),"\n")
|
|||||||
--io.write("Maximum in the input array is ",math.max(1,100,101,99,999),"\n")
|
--io.write("Maximum in the input array is ",math.max(1,100,101,99,999),"\n")
|
||||||
--io.write("Minimum in the input array is ",math.min(1,100,101,99,999),"\n")
|
--io.write("Minimum in the input array is ",math.min(1,100,101,99,999),"\n")
|
||||||
print("********************************************")
|
print("********************************************")
|
||||||
|
|
||||||
|
print("****************OS Functions *******")
|
||||||
|
io.write("The date is ", os.date("%m/%d/%Y"),"\n")
|
||||||
|
io.write("The date and time is ", os.date(),"\n")
|
||||||
|
io.write("The OS time is ", os.time(),"\n")
|
||||||
|
io.write("Lua started before ", os.clock(),"\n")
|
||||||
|
print("********************************************")
|
||||||
|
Loading…
Reference in New Issue
Block a user