1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-24 04:44:34 +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('round');
T('round', function () {
function t(expected, n, rm) {
Decimal.rounding = rm;
@@ -521,6 +520,4 @@ if (typeof T === 'undefined') require('../setup');
t('42601873172232953', '42601873172232953.30659313764825104206642999', 3);
t('1.8171003585956362231021760046143097114054128693433487680606690918875530579038e+76', '1.81710035859563622310217600461430971140541286934334876806066909188755305790370439773413227239119191673971090333e+76', 2);
t('3.71331955392433687189949e+23', '3.7133195539243368718994912855e+23', 6);
T.stop();
})();
});