(option: Option.Option<BigDecimal.BigDecimal>, expected: BigDecimal.BigDecimal)
| 14 | const $ = BigDecimal.fromStringUnsafe |
| 15 | |
| 16 | const assertSomeBigDecimal = (option: Option.Option<BigDecimal.BigDecimal>, expected: BigDecimal.BigDecimal) => { |
| 17 | if (Option.isNone(option)) { |
| 18 | throw new Error("Expected Option.some") |
| 19 | } |
| 20 | assertEquals(option.value, expected) |
| 21 | } |
| 22 | |
| 23 | const assertDivide = (x: string, y: string, z: string) => { |
| 24 | assertSomeBigDecimal(BigDecimal.divide($(x), $(y)), $(z)) |
no test coverage detected