1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-23 12:24: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('cosh');
T('cosh', function () {
function t(n, pr, rm, expected) {
Decimal.precision = pr;
@@ -119,6 +118,4 @@ if (typeof T === 'undefined') require('../setup');
t('0.9', 103, 1, '1.433086385448774387841790401624048341627737841305230594247417192533449635356864305114609711796244033432');
t('-0.833291445811118155331699076307265315671094768698998', 48, 2, '1.36774796193155903463660933986762434999452033326');
t('-0.7', 66, 6, '1.25516900563094301816467474099029711586260477992884178681185039895');
T.stop();
})();
});