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('modulo');
|
||||
T('modulo', function () {
|
||||
|
||||
var t = function (a, b, expected, sd, rm) {
|
||||
T.assertEqual(expected, new Decimal(a).mod(b).valueOf());
|
||||
@@ -1074,6 +1073,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('-6.00559063113006083268308811806162403396832594e+7303', '-526206391770735839309548148095066062264265607373.735063960260', '-2.5090125586506678664e+47', 20, 6);
|
||||
t('-2.2567835144492993286994200e+573', '3.86e+19', '-2.72e+19', 56, 0);
|
||||
t('45.40437334953326105840633843242', '8.165685418205048453423994094023522482e+91', '4.540437334953326105840633843242e+1', 55, 6);
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user