uapte
This commit is contained in:
-7
@@ -1,7 +0,0 @@
|
||||
"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");
|
||||
};
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/epsilon/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t, "number"); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/is-finite/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
"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");
|
||||
};
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/is-integer/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
"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
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/is-nan/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
a(t(2), false, "Number");
|
||||
a(t({}), false, "Not numeric");
|
||||
a(t(NaN), true, "NaN");
|
||||
};
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
"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
@@ -1,13 +0,0 @@
|
||||
"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");
|
||||
};
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/is-safe-integer/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
"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");
|
||||
};
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/max-safe-integer/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t, "number"); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../number/min-safe-integer/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t, "number"); };
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
"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
@@ -1,10 +0,0 @@
|
||||
"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
@@ -1,8 +0,0 @@
|
||||
"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");
|
||||
};
|
||||
Reference in New Issue
Block a user