mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
13 lines (10 loc) • 351 B
JavaScript
var assert = require('assert');
var error = require('../../lib/error/index');
describe('index.js', function () {
it('should contain error factory functions', function () {
assert(Array.isArray(error));
assert(error[0].name, 'ArgumentsError');
assert(error[1].name, 'DimensionError');
assert(error[2].name, 'IndexError');
});
});