feat(number): Provide return types for all operations
This commit is contained in:
parent
3957ae8adf
commit
1ee6da4294
9 changed files with 75 additions and 70 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue