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

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

initial commit

  • Property mode set to 100644
File size: 442 bytes
RevLine 
[6a3a178]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.