summaryrefslogtreecommitdiff
path: root/tests/test-suite/math.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-08-18 13:49:16 +1000
committerdaurnimator <quae@daurnimator.com>2017-08-18 13:52:20 +1000
commit36f446c3d43a90063962f8af790e7b58b08765f5 (patch)
tree7ffa6e9785440fa4b2c54b03cd97f8de80f7e4ae /tests/test-suite/math.js
parent389630abe2f44e122d29af7159dd1a0d5c585d15 (diff)
downloadfengari-36f446c3d43a90063962f8af790e7b58b08765f5.tar.gz
fengari-36f446c3d43a90063962f8af790e7b58b08765f5.tar.bz2
fengari-36f446c3d43a90063962f8af790e7b58b08765f5.zip
Remove math.randomseed implementation
See #78
Diffstat (limited to 'tests/test-suite/math.js')
-rw-r--r--tests/test-suite/math.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test-suite/math.js b/tests/test-suite/math.js
index b92d304..ea021d2 100644
--- a/tests/test-suite/math.js
+++ b/tests/test-suite/math.js
@@ -1395,8 +1395,6 @@ test("[test-suite] math: testing -0 and NaN", function (t) {
test("[test-suite] math: test random for floats", function (t) {
let luaCode = `
- math.randomseed(0)
-
do -- test random for floats
local max = -math.huge
local min = math.huge
@@ -1438,8 +1436,6 @@ test("[test-suite] math: test random for floats", function (t) {
test("[test-suite] math: test random for small intervals", function (t) {
let luaCode = `
- math.randomseed(0)
-
do
local function aux (p, lim) -- test random for small intervals
local x1, x2
@@ -1496,8 +1492,6 @@ test("[test-suite] math: test random for small intervals", function (t) {
test("[test-suite] math: test random for large intervals", function (t) {
let luaCode = `
- math.randomseed(0)
-
do
local function aux(p1, p2) -- test random for large intervals
local max = minint
@@ -1556,8 +1550,6 @@ test("[test-suite] math: test random for large intervals", function (t) {
test("[test-suite] math: test random for empty interval", function (t) {
let luaCode = `
- math.randomseed(0)
-
assert(not pcall(math.random, minint + 1, minint))
assert(not pcall(math.random, maxint, maxint - 1))
assert(not pcall(math.random, maxint, minint))
@@ -1586,8 +1578,6 @@ test("[test-suite] math: test random for empty interval", function (t) {
test("[test-suite] math: interval too large", function (t) {
let luaCode = `
- math.randomseed(0)
-
assert(not pcall(math.random, minint, 0))
assert(not pcall(math.random, -1, maxint))
assert(not pcall(math.random, minint // 2, maxint // 2 + 1))