feat(number): Provide return types for all operations

This commit is contained in:
Glen Whitney 2022-08-29 21:18:59 -04:00
parent 3957ae8adf
commit 1ee6da4294
9 changed files with 75 additions and 70 deletions

View file

@ -60,6 +60,9 @@ describe('The default full pocomath instance "math"', () => {
assert.strictEqual(quatType, 'Complex<Complex<NumInt>>')
assert.strictEqual(
math.returnTypeOf('multiply', quatType + ',' + quatType), quatType)
assert.strictEqual(math.returnTypeOf('isZero', 'NumInt'), 'boolean')
assert.strictEqual(
math.returnTypeOf('roundquotient', 'NumInt,number'), 'NumInt')
})
it('can subtract numbers', () => {