source: trip-planner-front/node_modules/hdr-histogram-js/src/ulp.spec.ts@ 188ee53

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

initial commit

  • Property mode set to 100644
File size: 288 bytes
Line 
1import ulp from "./ulp";
2
3describe("math ulp helper", () => {
4 it("should compute ulp of integer", () => {
5 expect(ulp(1)).toBe(2.220446049250313e-16);
6 });
7
8 it("should compute ulp of floating point number", () => {
9 expect(ulp(0.000333)).toBe(5.421010862427522e-20);
10 });
11});
Note: See TracBrowser for help on using the repository browser.