UNPKG

@compute.ts/math

Version:

Provide math operators for the computeTS package

1 lines 488 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 sign operator",function(){it("Should be able to perform an evaluation of the sign operator",function(){var e=number_1.number(),r=ComputeMathLibrary_1.sign(e);e.affect(10),chai_1.expect(r.eval()).to.equal(1),e.affect(-6),chai_1.expect(r.eval()).to.equal(-1)})});