feat(floor): Provide example of op-centric organization
This commit is contained in:
parent
fe54bc6004
commit
7d1a435aa0
11 changed files with 65 additions and 8 deletions
|
@ -37,4 +37,10 @@ describe('number', () => {
|
|||
assert.ok(math.largerEq(12.5, math.divide(25,2)))
|
||||
})
|
||||
|
||||
it('Computes floor', () => {
|
||||
assert.strictEqual(math.floor(7), 7)
|
||||
assert.strictEqual(math.floor(6.99), 6)
|
||||
assert.strictEqual(math.floor(1-1e-13), 1)
|
||||
})
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue