feat: add a first generic method, square #10
1 changed files with 3 additions and 0 deletions
|
@ -4,5 +4,8 @@ import math from '#nanomath'
|
||||||
describe('generic arithmetic', () => {
|
describe('generic arithmetic', () => {
|
||||||
it('squares anything', () => {
|
it('squares anything', () => {
|
||||||
assert.strictEqual(math.square(7), 49)
|
assert.strictEqual(math.square(7), 49)
|
||||||
|
assert.strictEqual(
|
||||||
|
math.square.resolve([math.types.Number]).returns,
|
||||||
|
math.types.Number)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue