This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

7
node_modules/es5-ext/test/number/#/pad.js generated vendored Normal file
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,5 @@
"use strict";
var isImplemented = require("../../../number/epsilon/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

3
node_modules/es5-ext/test/number/epsilon/index.js generated vendored Normal file
View File

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

View File

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

View File

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

3
node_modules/es5-ext/test/number/is-finite/index.js generated vendored Normal file
View File

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

View File

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

8
node_modules/es5-ext/test/number/is-finite/shim.js generated vendored Normal file
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,5 @@
"use strict";
var isImplemented = require("../../../number/is-integer/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

3
node_modules/es5-ext/test/number/is-integer/index.js generated vendored Normal file
View File

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

View File

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

9
node_modules/es5-ext/test/number/is-integer/shim.js generated vendored Normal file
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");
};

5
node_modules/es5-ext/test/number/is-nan/implement.js generated vendored Normal file
View File

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

3
node_modules/es5-ext/test/number/is-nan/index.js generated vendored Normal file
View File

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

View File

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

7
node_modules/es5-ext/test/number/is-nan/shim.js generated vendored Normal file
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");
};

10
node_modules/es5-ext/test/number/is-natural.js generated vendored Normal file
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");
};

13
node_modules/es5-ext/test/number/is-number.js generated vendored Normal file
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,5 @@
"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,3 @@
"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,5 @@
"use strict";
var isImplemented = require("../../../number/max-safe-integer/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

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

View File

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

View File

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

View File

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

View File

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

10
node_modules/es5-ext/test/number/to-integer.js generated vendored Normal file
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");
};

10
node_modules/es5-ext/test/number/to-pos-integer.js generated vendored Normal file
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");
};

8
node_modules/es5-ext/test/number/to-uint32.js generated vendored Normal file
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");
};