mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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
Notes:
sideshowbarker
2024-07-19 07:51:22 +09:00
Author: https://github.com/emanuele6 Commit: https://github.com/SerenityOS/serenity/commit/1d6c8724b98 Pull-request: https://github.com/SerenityOS/serenity/pull/1666
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
Reference in a new issue