Detail in 'testes/math.lua'
Added a print with the random seeds used in the tests of 'random'.
This commit is contained in:
@@ -849,6 +849,7 @@ do
|
|||||||
math.randomseed(x, y) -- again should repeat the state
|
math.randomseed(x, y) -- again should repeat the state
|
||||||
assert(math.random(0) == res)
|
assert(math.random(0) == res)
|
||||||
-- keep the random seed for following tests
|
-- keep the random seed for following tests
|
||||||
|
print(string.format("random seeds: %d, %d", x, y))
|
||||||
end
|
end
|
||||||
|
|
||||||
do -- test random for floats
|
do -- test random for floats
|
||||||
|
|||||||
Reference in New Issue
Block a user