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('toFixed');
|
||||
T('toFixed', function () {
|
||||
|
||||
function t(expected, n, dp) {
|
||||
T.assertEqual(expected, new Decimal(n).toFixed(dp));
|
||||
@@ -567,6 +566,4 @@ if (typeof T === 'undefined') require('../setup');
|
||||
t('1.00000000000000000000', '1.000000000000000000005', 20);
|
||||
t('-1.00000000000000000', '-1.000000000000000000005', 17);
|
||||
t('-1.00000000000000000001', '-1.000000000000000000005', 20);
|
||||
|
||||
T.stop();
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user