1var time = new Date(), 2 passed = 0, 3 total = 0; 4 5console.log('\n Testing decimal.js\n'); 6 7[ 8 'abs', 9 'acos', 10 'acosh', 11 'asin', 12 'asinh', 13 'atan', 14 'atan2', 15 'atanh', 16 'cbrt', 17 'ceil', 18 'clamp', 19 'clone', 20 'cmp', 21 'config', 22 'cos', 23 'cosh', 24 'Decimal', 25 'div', 26 'divToInt', 27 'dpSd', 28 'exp', 29 'floor', 30 'hypot', 31 'immutability', 32 'intPow', 33 'isFiniteEtc', 34 'ln', 35 'log', 36 'log10', 37 'log2', 38 'minAndMax', 39 'minus', 40 'mod', 41 'neg', 42 'plus', 43 'pow', 44 'random', 45 'round', 46 'sign', 47 'sin', 48 'sinh', 49 'sqrt', 50 'sum', 51 'tan', 52 'tanh', 53 'times', 54 'toBinary', 55 'toDP', 56 'toExponential', 57 'toFixed', 58 'toFraction', 59 'toHex', 60 'toNearest', 61 'toNumber', 62 'toOctal', 63 'toPrecision', 64 'toSD', 65 'toString', 66 'trunc', 67 'valueOf' 68] 69.forEach(function (module) { 70 require('./modules/' + module); 71 passed += T.result[0]; 72 total += T.result[1]; 73}); 74 75time = new Date() - time; 76console.log('\n In total, ' + passed + ' of ' + total + ' tests passed in ' + (time / 1e3) + ' secs.\n'); 77