source: trip-planner-front/node_modules/hdr-histogram-js/dist/ulp.spec.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 442 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const ulp_1 = require("./ulp");
4describe("math ulp helper", () => {
5 it("should compute ulp of integer", () => {
6 expect(ulp_1.default(1)).toBe(2.220446049250313e-16);
7 });
8 it("should compute ulp of floating point number", () => {
9 expect(ulp_1.default(0.000333)).toBe(5.421010862427522e-20);
10 });
11});
12//# sourceMappingURL=ulp.spec.js.map
Note: See TracBrowser for help on using the repository browser.