nanomath/src/generic/__test__/arithmetic.spec.js

12 lines
300 B
JavaScript
Raw Normal View History

import assert from 'assert'
import math from '#nanomath'
describe('generic arithmetic', () => {
it('squares anything', () => {
assert.strictEqual(math.square(7), 49)
assert.strictEqual(
math.square.resolve([math.types.NumberT]).returns,
math.types.NumberT)
})
})