LibJS: Fix some tests for Math.min()

In some of the tests in Math.min.js, we were testing Math.max() instead
of Math.min()
This commit is contained in:
Emanuele Torre 2020-04-06 15:02:08 +02:00 committed by Andreas Kling
parent 5d2bfbd20b
commit 1d6c8724b9
Notes: sideshowbarker 2024-07-19 07:51:22 +09:00

View file

@ -3,8 +3,8 @@ try {
assert(Math.min(1) === 1);
assert(Math.min(2, 1) === 1);
assert(Math.min(1, 2, 3) === 1);
assert(isNaN(Math.max(NaN)));
assert(isNaN(Math.max("String", 1)));
assert(isNaN(Math.min(NaN)));
assert(isNaN(Math.min("String", 1)));
console.log("PASS");
} catch {