mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-09-22 20:04:09 +00:00
Mutation tests
This commit is contained in:
@@ -6,8 +6,10 @@ if (typeof T === 'undefined') require('../setup');
|
||||
function t(n, expected, pr, rm) {
|
||||
Decimal.precision = pr;
|
||||
Decimal.rounding = rm;
|
||||
var x = new Decimal(n);
|
||||
T.assertEqual(expected, x.exp().valueOf());
|
||||
T.assertEqual(expected, Decimal.exp(n).valueOf());
|
||||
T.assertEqual(expected, new Decimal(n).exp().valueOf());
|
||||
T.assert(x.eq(n) || x.isNaN());
|
||||
}
|
||||
|
||||
Decimal.config({
|
||||
|
||||
Reference in New Issue
Block a user