test: check return type of square
All checks were successful
/ test (pull_request) Successful in 10s
All checks were successful
/ test (pull_request) Successful in 10s
This commit is contained in:
parent
f99cc30b2a
commit
3f92d00a52
1 changed files with 3 additions and 0 deletions
|
@ -4,5 +4,8 @@ import math from '#nanomath'
|
|||
describe('generic arithmetic', () => {
|
||||
it('squares anything', () => {
|
||||
assert.strictEqual(math.square(7), 49)
|
||||
assert.strictEqual(
|
||||
math.square.resolve([math.types.Number]).returns,
|
||||
math.types.Number)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue