mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-09-23 20:35:04 +00:00
refactor tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
if (typeof T === 'undefined') require('../setup');
|
||||
|
||||
(function () {
|
||||
T('sqrt');
|
||||
T('sqrt', function () {
|
||||
|
||||
function t(expected, n, sd, rm) {
|
||||
Decimal.precision = sd;
|
||||
@@ -541,6 +540,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('2.7450159803706115172884307982554068123557452994357916574e+29493402848956', '7.535112732490029474794930517417328483099871453263111571224994801873955541077813E+58986805697912', 56, 1);
|
||||
t('8.450708163926728117884231904577733365414280601e-3356220959', '7.1414468471857852311230634694477427663911004991250862311231174531532437446075636178902521E-6712441917', 46, 2);
|
||||
t('2.21717604626595076e+2233028', '4.91586962013551338731303957E+4466056', 18, 2);
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user