mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
Replacement for Minimal Development Test (PR) (#9450)
This commit is contained in:
parent
a9b74f4c39
commit
6456aba73f
465 changed files with 5141 additions and 3486 deletions
10
games/minimal/mods/unittests/random.lua
Normal file
10
games/minimal/mods/unittests/random.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
function unittests.test_random()
|
||||
-- Try out PseudoRandom
|
||||
minetest.log("action", "[unittests] Testing PseudoRandom ...")
|
||||
local pseudo = PseudoRandom(13)
|
||||
assert(pseudo:next() == 22290)
|
||||
assert(pseudo:next() == 13854)
|
||||
minetest.log("action", "[unittests] PseudoRandom test passed!")
|
||||
return true
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue