1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-03-02 03:49:24 +00:00
This commit is contained in:
Michael Mclaughlin
2021-06-22 19:20:14 +01:00
parent c29c80c6e3
commit 220f11c498
15 changed files with 94 additions and 79 deletions

View File

@@ -24,11 +24,9 @@ T('clamp', function () {
t(1, 0, 1, '1');
t(2, 0, 1, '1');
t(0, 0, -1, 'NaN');
t(1, 1, 1, '1');
t(-1, 1, 1, '1');
t(-1, -1, 1, '-1');
t(1, 1, -1, 'NaN');
t(2, 1, 2, '2');
t(3, 1, 2, '2');
t(1, 0, 1, '1');
@@ -39,8 +37,6 @@ T('clamp', function () {
t(-Infinity, 0, 1, '0');
t(-Infinity, -Infinity, Infinity, '-Infinity');
t(Infinity, -Infinity, Infinity, 'Infinity');
t(Infinity, Infinity, -Infinity, 'NaN');
t(0, Infinity, 0, 'NaN');
t(0, 1, Infinity, '1');
t(0, NaN, 1, 'NaN');