UNPKG

@compute.ts/math

Version:

Provide math operators for the computeTS package

1 lines 541 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var number_1=require("@compute.ts/number"),chai_1=require("chai");require("mocha");var ComputeMathLibrary_1=require("../ComputeMathLibrary");describe("The the ceil operator",function(){it("Should be able to perform an evaluation of the ceil operator",function(){var e=number_1.number(),r=ComputeMathLibrary_1.ceil(e);e.affect(1.1),chai_1.expect(r.eval()).to.equal(2),e.affect(2.8),chai_1.expect(r.eval()).to.equal(3),e.affect(-2.8),chai_1.expect(r.eval()).to.equal(-2)})});