1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-24 04:44:34 +00:00

refactor tests

This commit is contained in:
Michael Mclaughlin
2016-02-06 17:51:29 +00:00
parent 587b9fe82f
commit caad23d669
64 changed files with 308 additions and 549 deletions

View File

@@ -2,8 +2,7 @@
// Also tests each Decimal.prototype method against its equivalent Decimal method where applicable.
if (typeof T === 'undefined') require('../setup');
(function () {
T('immutability');
T('immutability', function () {
Decimal.config({
precision: 20,
@@ -157,7 +156,7 @@ if (typeof T === 'undefined') require('../setup');
T.assertEqual(x, y);
// Omit these hyperbolic methods if a is large, as they are too time-consuming.
// Omit hyperbolic methods if a is large, as they are too time-consuming.
if (a.abs().lt(1000)) {
x = a.hyperbolicCosine();
t(a, aa);
@@ -547,9 +546,7 @@ if (typeof T === 'undefined') require('../setup');
Decimal.sign(a);
t(a, aa);
}
T.stop();
})();
});
/*
// All methods tested above except: