feat: add a first generic method, square #10

Merged
glen merged 2 commits from generic_square into main 2025-04-08 23:25:02 +00:00
Showing only changes of commit 3f92d00a52 - Show all commits

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