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.
14 lines (11 loc) • 378 B
JavaScript
var assert = require('assert'),
error = require('../../lib/error/index');
describe('index.js', function () {
it('should contain error namespace', function () {
assert.equal(typeof error, 'object');
assert('ArgumentsError' in error);
assert('DimensionError' in error);
assert('IndexError' in error);
assert('UnsupportedTypeError' in error);
});
});