Skip to content

Commit 9be84a2

Browse files
committed
test/test.lua: added rudimentary smoke tests
1 parent 65e6bc8 commit 9be84a2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/test.lua

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
-- test.lua: tests for lua-noise library
2+
-- Copyright (c) 2009 lua-noise authors
3+
-- See copyright information in the COPYRIGHT file
4+
5+
-- TODO: Those are merely smoke tests. Write a full test suite!
6+
7+
local print = print
8+
9+
package.cpath = package.cpath .. './?.so'
10+
11+
perlin = require('perlin')
12+
13+
math.randomseed(1250924760)
14+
15+
local p = perlin.new()
16+
17+
for i = 1, 1e6 do
18+
print(p:noise1(1 / i))
19+
end

0 commit comments

Comments
 (0)