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('negated');
|
||||
T('negated', function () {
|
||||
|
||||
function t(expected, n) {
|
||||
T.assertEqual(expected, new Decimal(n).neg().valueOf());
|
||||
@@ -221,6 +220,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('-2.9e+0', '2.9e+0');
|
||||
t('-1.764e+3', '1.764e+3');
|
||||
t('9.3418332730097368870513138581415704704611459349313e+49', '-9.3418332730097368870513138581415704704611459349313e+49');
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user