12 lines
442 B
JavaScript
12 lines
442 B
JavaScript
"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
|