MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertDivide

Function assertDivide

packages/effect/test/BigDecimal.test.ts:16–19  ·  view source on GitHub ↗
(x: string, y: string, z: string)

Source from the content-addressed store, hash-verified

14const $ = BigDecimal.unsafeFromString
15
16const assertDivide = (x: string, y: string, z: string) => {
17 assertEquals(BigDecimal.divide($(x), $(y)).pipe(Option.getOrThrow), $(z), `Expected ${x} / ${y} to be ${z}`)
18 assertEquals(BigDecimal.unsafeDivide($(x), $(y)), $(z), `Expected ${x} / ${y} to be ${z}`)
19}
20
21describe("BigDecimal", () => {
22 it("isBigDecimal", () => {

Callers 1

BigDecimal.test.tsFile · 0.85

Calls 2

assertEqualsFunction · 0.90
pipeMethod · 0.65

Tested by

no test coverage detected