mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
16 lines
426 B
JavaScript
16 lines
426 B
JavaScript
try {
|
|
assert(Math.cos(0) === 1);
|
|
assert(Math.cos(null) === 1);
|
|
assert(Math.cos('') === 1);
|
|
assert(Math.cos([]) === 1);
|
|
assert(Math.cos(Math.PI) === -1);
|
|
assert(isNaN(Math.cos()));
|
|
assert(isNaN(Math.cos(undefined)));
|
|
assert(isNaN(Math.cos([1, 2, 3])));
|
|
assert(isNaN(Math.cos({})));
|
|
assert(isNaN(Math.cos("foo")));
|
|
|
|
console.log("PASS");
|
|
} catch (e) {
|
|
console.log("FAIL: " + e);
|
|
}
|