mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Implements TC39 stage three proposal for Float16Arrays: https://tc39.es/proposal-float16array
9 lines
266 B
JavaScript
9 lines
266 B
JavaScript
test("basic functionality", () => {
|
|
expect(Math.f16round).toHaveLength(1);
|
|
|
|
expect(Math.f16round(5.5)).toBe(5.5);
|
|
expect(Math.f16round(5.05)).toBe(5.05078125);
|
|
expect(Math.f16round(5)).toBe(5);
|
|
expect(Math.f16round(-5.05)).toBe(-5.05078125);
|
|
});
|