mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-09-23 04:14:32 +00:00
refactor tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
if (typeof T === 'undefined') require('../setup');
|
||||
|
||||
(function () {
|
||||
T('plus');
|
||||
T('plus', function () {
|
||||
|
||||
var t = function (addendA, addendB, expected) {
|
||||
T.assertEqual(expected, new Decimal(addendA).plus(addendB).valueOf());
|
||||
@@ -1041,6 +1040,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('-3.60348795228017780049569753533186294E+499', '8.80786821E+82223318', '8.80786821e+82223318', 28, 0);
|
||||
t('-9.8967145096522848735804634E+98677519', '-8.39861E+5784323495519916', '-8.39e+5784323495519916', 3, 1);
|
||||
t('-5.54480709948277E-718373854', '-7.119627881088288640389987E-896127305535', '-5.54480709948277e-718373854', 56, 6);
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user