1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-24 12:54:47 +00:00

refactor tests

This commit is contained in:
Michael Mclaughlin
2016-02-06 17:51:29 +00:00
parent 587b9fe82f
commit caad23d669
64 changed files with 308 additions and 549 deletions

View File

@@ -1,7 +1,6 @@
if (typeof T === 'undefined') require('../setup');
(function () {
T('cos');
T('cos', function () {
function t(n, pr, rm, expected) {
Decimal.precision = pr;
@@ -121,6 +120,4 @@ if (typeof T === 'undefined') require('../setup');
t('0.10859933721171128209598967066', 80, 4, '0.99410888528803407646108267824473898405842663808987770888683180574685964084716924');
t('2813920.875088303362819', 33, 2, '-0.866254989781355498995879756871368');
t('35999999999999999999999999999999999999999.999999999999999999999999919', 38, 3, '-0.9562598584240982386154988349219959087');
T.stop();
})();
});