test: check return type of square
All checks were successful
/ test (pull_request) Successful in 10s

This commit is contained in:
Glen Whitney 2025-04-08 16:24:23 -07:00
parent f99cc30b2a
commit 3f92d00a52

View file

@ -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)
})
})