浏览代码

Detail in 'testes/math.lua'

Added a print with the random seeds used in the tests of 'random'.
Roberto Ierusalimschy 4 年之前
父节点
当前提交
a393ac2554
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      testes/math.lua

+ 1 - 0
testes/math.lua

@@ -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