mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
15 lines
302 B
JavaScript
15 lines
302 B
JavaScript
var assert = require('assert');
|
|
|
|
/**
|
|
* Test whether two BigNumbers are equal. They are allowed to have a differing
|
|
* configuration.
|
|
*
|
|
* Throws an assertion when not equal
|
|
*
|
|
* @param {BigNumber} a
|
|
* @param {BigNumber} b
|
|
*/
|
|
exports.equal = function (a, b) {
|
|
assert(a.eq(b), a + ' != ' + b);
|
|
};
|