1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-24 21:04:32 +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('minus');
T('minus', function () {
var t = function (minuend, subtrahend, expected) {
T.assertEqual(expected, new Decimal(minuend).minus(subtrahend).valueOf());
@@ -1045,6 +1044,4 @@ if (typeof T === 'undefined') require('../setup');
t('-6.1868661228611360547121138333173109576855395466826784e-9251', '-3.3407355564230790311536623458601152993159e-206708339', '-6.18686612286113605471211383331731095768553954668267839999999999999999999e-9251', 72, 2);
t('-8.2894772800817807e-795566101', '-882094911847133130492689954681328382693767501748865135497984118817292143479942556093392300518133.40', '8.820949118471331304926899546813283826937675017488651354979841188172921434799425560933923005181334e+95', 97, 2);
t('-3.71e-54', '8.1409094135303963371158960125104271236131e-52265', '-3.710000000000000000000000000000000000000000000000000000000000001e-54', 64, 3);
T.stop();
})();
});