mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Rename “Minimal development test” to “Development Test” (#9928)
This commit is contained in:
10
games/devtest/mods/unittests/random.lua
Normal file
10
games/devtest/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
|
||||
|
Reference in New Issue
Block a user