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:
@@ -1,7 +1,6 @@
|
||||
if (typeof T === 'undefined') require('../setup');
|
||||
|
||||
(function () {
|
||||
T('tanh');
|
||||
T('tanh', function () {
|
||||
|
||||
function t(n, pr, rm, expected) {
|
||||
Decimal.precision = pr;
|
||||
@@ -119,7 +118,5 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('-0.50752591', 24, 5, '-0.468015268006387507893896');
|
||||
t('-0.54917290836787549931392', 88, 4, '-0.49990006636857985687649939062630289074578706968740926592041362893811220431493732027711');
|
||||
t('0.91999661041886666', 17, 6, '0.72589581132601256');
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user