mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 03:04:59 +00:00
12 lines
282 B
JavaScript
12 lines
282 B
JavaScript
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");
|
|
}
|