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('hypot');
|
||||
T('hypot', function () {
|
||||
|
||||
function t(a, b, pr, rm, expected) {
|
||||
Decimal.precision = pr;
|
||||
@@ -119,6 +118,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('0.4519719010451812700381881242155284703426402593258190987', '92346327717009585478189395590602.34545881237122995324639951758026247635570631069180557087', 55, 4, '92346327717009585478189395590602.3454588123712299532464');
|
||||
t('69398002688216703269792743800286307271116693445111111111111111', '-211393667179764005100083390018873694', 100, 0, '69398002688216703269792743800286307271116693445111111433074862.06409526630410784634920186057594444197');
|
||||
t('0.19', '-5288.143883', 42, 3, '5288.14388641329593020355143132324946951485');
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user