diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-08-18 10:46:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-08-18 10:46:18 -0300 |
commit | a393ac255493276b1ad9d7be057fe58ea824dd00 (patch) | |
tree | 424ca5ce359c3760f71b1ff7ad156f01613ee43f | |
parent | 65434b4d1b5509e95940939e28fd90d4558da12e (diff) | |
download | lua-a393ac255493276b1ad9d7be057fe58ea824dd00.tar.gz lua-a393ac255493276b1ad9d7be057fe58ea824dd00.tar.bz2 lua-a393ac255493276b1ad9d7be057fe58ea824dd00.zip |
Detail in 'testes/math.lua'
Added a print with the random seeds used in the tests of 'random'.
-rw-r--r-- | testes/math.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testes/math.lua b/testes/math.lua index 930221e3..48c1efe1 100644 --- a/testes/math.lua +++ b/testes/math.lua | |||
@@ -849,6 +849,7 @@ do | |||
849 | math.randomseed(x, y) -- again should repeat the state | 849 | math.randomseed(x, y) -- again should repeat the state |
850 | assert(math.random(0) == res) | 850 | assert(math.random(0) == res) |
851 | -- keep the random seed for following tests | 851 | -- keep the random seed for following tests |
852 | print(string.format("random seeds: %d, %d", x, y)) | ||
852 | end | 853 | end |
853 | 854 | ||
854 | do -- test random for floats | 855 | do -- test random for floats |