Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("should multiply while trying to avoid numerical errors", () => {
expect(Qty.mulSafe(0.1, 0.1)).toBe(0.01);
expect(Qty.mulSafe(1e-11, 123.456789)).toBe(1.23456789e-9);
expect(Qty.mulSafe(6e-12, 100000)).toBe(6e-7);
});
});
it("should multiply while trying to avoid numerical errors", () => {
expect(Qty.mulSafe(0.1, 0.1)).toBe(0.01);
expect(Qty.mulSafe(1e-11, 123.456789)).toBe(1.23456789e-9);
expect(Qty.mulSafe(6e-12, 100000)).toBe(6e-7);
});
});
it("should multiply while trying to avoid numerical errors", () => {
expect(Qty.mulSafe(0.1, 0.1)).toBe(0.01);
expect(Qty.mulSafe(1e-11, 123.456789)).toBe(1.23456789e-9);
expect(Qty.mulSafe(6e-12, 100000)).toBe(6e-7);
});
});
it("should multiply while trying to avoid numerical errors", () => {
expect(Qty.mulSafe(0.1, 0.1)).toBe(0.01);
expect(Qty.mulSafe(1e-11, 123.456789)).toBe(1.23456789e-9);
expect(Qty.mulSafe(6e-12, 100000)).toBe(6e-7);
});
});
it("should multiply while trying to avoid numerical errors", () => {
expect(Qty.mulSafe(0.1, 0.1)).toBe(0.01);
expect(Qty.mulSafe(1e-11, 123.456789)).toBe(1.23456789e-9);
expect(Qty.mulSafe(6e-12, 100000)).toBe(6e-7);
});
});
it("should multiply while trying to avoid numerical errors", () => {
expect(Qty.mulSafe(0.1, 0.1)).toBe(0.01);
expect(Qty.mulSafe(1e-11, 123.456789)).toBe(1.23456789e-9);
expect(Qty.mulSafe(6e-12, 100000)).toBe(6e-7);
});
});