Icard/angular-clarity-master(work.../node_modules/hdr-histogram-js/dist/ulp.spec.js

12 lines
442 B
JavaScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ulp_1 = require("./ulp");
describe("math ulp helper", () => {
it("should compute ulp of integer", () => {
expect(ulp_1.default(1)).toBe(2.220446049250313e-16);
});
it("should compute ulp of floating point number", () => {
expect(ulp_1.default(0.000333)).toBe(5.421010862427522e-20);
});
});
//# sourceMappingURL=ulp.spec.js.map