Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Jan 22, 2017
1 parent e62b7a5 commit 300bd93
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/db2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

do
local env = db2.allocEnv()
print(env)
local res = db2.freeEnv(env)
end
28 changes: 28 additions & 0 deletions tests/main.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

print("my first Lua script!")

local myNum = 5

do
while myNum > 0 do
print(string.format("myNum: %d", myNum))
myNum = myNum - 1
end
end

do
for k, v in pairs(os.date("*t")) do print(k, v) end
end

do
os.execute("echo hello")
end

do
print(os.getenv("LANG"))
end

do
local t = os.date('*t')
print(string.format("Time: %d", os.time(t)))
end

0 comments on commit 300bd93

Please sign in to comment.