You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
442 B

"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