mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
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:
parent
5d2bfbd20b
commit
1d6c8724b9
1 changed files with 2 additions and 2 deletions
4
Libraries/LibJS/Tests/Math.min.js
vendored
4
Libraries/LibJS/Tests/Math.min.js
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue