mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Implements TC39 stage three proposal for Float16Arrays: https://tc39.es/proposal-float16array
8 lines
266 B
JavaScript
8 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);
|
|
});
|