Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
288 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import ulp from "./ulp";
|
---|
| 2 |
|
---|
| 3 | describe("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.