ceil-10.js 333 B

12345678910111213
  1. "use strict";
  2. var assert = require("chai").assert
  3. , ceil10 = require("../../math/ceil-10");
  4. describe("math/ceil-10", function () {
  5. it("Should ceil", function () {
  6. assert.equal(ceil10(55.51, -1), 55.6);
  7. assert.equal(ceil10(51, 1), 60);
  8. assert.equal(ceil10(-55.59, -1), -55.5);
  9. assert.equal(ceil10(-59, 1), -50);
  10. });
  11. });