mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibJS: Add extreme value tests for cos and sin
These sometimes produce different NaN patterns which can mess up the value encoding.
This commit is contained in:
parent
27abbfdf09
commit
da8715a07c
4 changed files with 35 additions and 3 deletions
|
@ -11,4 +11,6 @@ test("basic functionality", () => {
|
|||
expect(Math.cos([1, 2, 3])).toBeNaN();
|
||||
expect(Math.cos({})).toBeNaN();
|
||||
expect(Math.cos("foo")).toBeNaN();
|
||||
expect(Math.cos(-Infinity)).toBeNaN();
|
||||
expect(Math.cos(Infinity)).toBeNaN();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue