feat(bigint): Specify return types for all methods

This commit is contained in:
Glen Whitney 2022-08-24 20:59:30 -04:00
parent 0950d7d585
commit bc434c7163
17 changed files with 61 additions and 30 deletions

View file

@ -38,6 +38,14 @@ describe('The default full pocomath instance "math"', () => {
math.returnTypeOf('chain', 'bigint'), 'Chain<bigint>')
assert.strictEqual(
math.returnTypeOf('returnTypeOf', 'string,string'), 'string')
assert.strictEqual(
math.returnTypeOf('conjugate', 'bigint'), 'bigint')
assert.strictEqual(
math.returnTypeOf('gcd', 'bigint,bigint'), 'bigint')
math.identity(math.fraction(3,5)) // TODO: ditto
assert.strictEqual(math.returnTypeOf('identity', 'Fraction'), 'Fraction')
assert.strictEqual(
math.returnTypeOf('quotient', 'bigint,bigint'), 'bigint')
})
it('can subtract numbers', () => {