mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-09-23 04:14:32 +00:00
Mutation tests
This commit is contained in:
@@ -4,7 +4,9 @@ if (typeof T === 'undefined') require('../setup');
|
||||
T('absoluteValue');
|
||||
|
||||
function t(expected, value){
|
||||
T.assertEqual(expected, new Decimal(value).abs().valueOf());
|
||||
var x = new Decimal(value);
|
||||
T.assertEqual(expected, x.abs().valueOf());
|
||||
T.assert(x.eq(value) || x.isNaN());
|
||||
}
|
||||
|
||||
Decimal.config({
|
||||
|
||||
Reference in New Issue
Block a user