2025-04-08 23:25:01 +00:00
|
|
|
import assert from 'assert'
|
|
|
|
import math from '#nanomath'
|
|
|
|
|
|
|
|
describe('generic arithmetic', () => {
|
|
|
|
it('squares anything', () => {
|
|
|
|
assert.strictEqual(math.square(7), 49)
|
|
|
|
assert.strictEqual(
|
2025-04-13 16:29:51 +00:00
|
|
|
math.square.resolve([math.types.NumberT]).returns,
|
|
|
|
math.types.NumberT)
|
2025-04-08 23:25:01 +00:00
|
|
|
})
|
|
|
|
})
|