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('log2');
|
||||
T('log2', function () {
|
||||
|
||||
function t(n, expected, sd, rm) {
|
||||
Decimal.precision = sd;
|
||||
@@ -173,6 +172,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('6.999992707421e-9095', '-3.02101286695814990981946878100430318253824323913669024362543485421644529066733767002654624094e+4', 93, 6);
|
||||
t('6.573152030373740763721111111111111111111111111111111111111111111111056e-77071', '-2.56021603615710387e+5', 18, 1);
|
||||
t('7.000003608682e589878', '1.959535108111633331253094708685915889078e+6', 40, 2);
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user