feat: First operational instance with just add
This commit is contained in:
parent
cb016474ec
commit
c5384e0ee7
6 changed files with 123 additions and 0 deletions
10
test/_pocomath.mjs
Normal file
10
test/_pocomath.mjs
Normal file
|
@ -0,0 +1,10 @@
|
|||
import assert from 'assert'
|
||||
import math from '../pocomath.mjs'
|
||||
|
||||
describe('The default full pocomath instance "math"', () => {
|
||||
it('can add numbers', () => {
|
||||
assert.strictEqual(math.add(3, 4), 7)
|
||||
assert.strictEqual(math.add(1.5, 2.5, 3.5), 7.5)
|
||||
assert.strictEqual(math.add(Infinity), Infinity)
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue