mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
14 lines
307 B
JavaScript
14 lines
307 B
JavaScript
load("test-common.js");
|
|
|
|
try {
|
|
assert(Math.min.length === 2);
|
|
assert(Math.min(1) === 1);
|
|
assert(Math.min(2, 1) === 1);
|
|
assert(Math.min(1, 2, 3) === 1);
|
|
assert(isNaN(Math.min(NaN)));
|
|
assert(isNaN(Math.min("String", 1)));
|
|
|
|
console.log("PASS");
|
|
} catch {
|
|
console.log("FAIL");
|
|
}
|