Detail in 'testes/math.lua'

Added a print with the random seeds used in the tests of 'random'.
This commit is contained in:
Roberto Ierusalimschy 2021-08-18 10:46:18 -03:00
parent 65434b4d1b
commit a393ac2554
1 changed files with 1 additions and 0 deletions

View File

@ -849,6 +849,7 @@ do
math.randomseed(x, y) -- again should repeat the state
assert(math.random(0) == res)
-- keep the random seed for following tests
print(string.format("random seeds: %d, %d", x, y))
end
do -- test random for floats