Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,7 @@
"use strict";
module.exports = function (t, a) {
a(t.call(78, 4), "0078");
a(t.call(65.12323, 4, 3), "0065.123", "Precision");
a(t.call(65, 4, 3), "0065.000", "Precision integer");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/epsilon/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t, "number");
};

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/is-finite/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,3 @@
"use strict";
module.exports = require("./shim");

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,8 @@
"use strict";
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t("23"), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/is-integer/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,3 @@
"use strict";
module.exports = require("./shim");

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,9 @@
"use strict";
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t(2.34), false, "Float");
a(t("23"), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/is-nan/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,3 @@
"use strict";
module.exports = require("./shim");

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,7 @@
"use strict";
module.exports = function (t, a) {
a(t(2), false, "Number");
a(t({}), false, "Not numeric");
a(t(NaN), true, "NaN");
};

View File

@ -0,0 +1,10 @@
"use strict";
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t(-2), false, "Negative");
a(t(2.34), false, "Float");
a(t("23"), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};

View File

@ -0,0 +1,13 @@
"use strict";
module.exports = function (t, a) {
a(t(0), true, "Zero");
a(t(NaN), true, "NaN");
a(t(Infinity), true, "Infinity");
a(t(12), true, "Number");
a(t(false), false, "Boolean");
a(t(new Date()), false, "Date");
a(t(new Number(2)), true, "Number object");
a(t("asdfaf"), false, "String");
a(t(""), false, "Empty String");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/is-safe-integer/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,3 @@
"use strict";
module.exports = require("./shim");

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,11 @@
"use strict";
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t(2.34), false, "Float");
a(t(Math.pow(2, 53)), false, "Too large");
a(t(Math.pow(2, 53) - 1), true, "Maximum");
a(t("23"), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/max-safe-integer/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t, "number");
};

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../number/min-safe-integer/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t, "number");
};

View File

@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

View File

@ -0,0 +1,10 @@
"use strict";
module.exports = function (t, a) {
a(t({}), 0, "NaN");
a(t(20), 20, "Positive integer");
a(t("-20"), -20, "String negative integer");
a(t(Infinity), Infinity, "Infinity");
a(t(15.343), 15, "Float");
a(t(-15.343), -15, "Negative float");
};

View File

@ -0,0 +1,10 @@
"use strict";
module.exports = function (t, a) {
a(t({}), 0, "NaN");
a(t(20), 20, "Positive integer");
a(t(-20), 0, "Negative integer");
a(t(Infinity), Infinity, "Infinity");
a(t(15.343), 15, "Float");
a(t(-15.343), 0, "Negative float");
};

View File

@ -0,0 +1,8 @@
"use strict";
module.exports = function (t, a) {
a(t({}), 0, "Not numeric");
a(t(-4), 4294967292, "Negative");
a(t(133432), 133432, "Positive");
a(t(8589934592), 0, "Greater than maximum");
};