This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

View File

@@ -1,6 +0,0 @@
"use strict";
module.exports = function (t, a) {
// Just sanity check, as real tests are in 'round', 'ceil' and 'floor' variants
a(t("round")(55.55, -1), 55.6);
};

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a.deep(t(1.337, 8, 23), [63, 171, 34, 209]); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a.deep(t([63, 171, 34, 209], 8, 23), 1.3370000123977661); };

View File

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

View File

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

View File

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

View File

@@ -1,11 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(-1), NaN, "Negative");
a(t(0), NaN, "Zero");
a(t(0.5), NaN, "Below 1");
a(t(1), 0, "1");
a(t(2), 1.3169578969248166, "Other");
a(t(Infinity), Infinity, "Infinity");
};

View File

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

View File

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

View File

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

View File

@@ -1,10 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), -Infinity, "-Infinity");
a(t(-2), -1.4436354751788103, "Negative");
a(t(2), 1.4436354751788103, "Positive");
};

View File

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

View File

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

View File

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

View File

@@ -1,11 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(-2), NaN, "Less than -1");
a(t(2), NaN, "Greater than 1");
a(t(-1), -Infinity, "-1");
a(t(1), Infinity, "1");
a(t(0), 0, "Zero");
a(Math.round(t(0.5) * 1e15), 549306144334055, "Other");
};

View File

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

View File

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

View File

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

View File

@@ -1,11 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), -Infinity, "-Infinity");
a(t(-1), -1, "-1");
a(t(1), 1, "1");
a(t(2), 1.2599210498948732, "Ohter");
};

View File

@@ -1,8 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t(55.51, -1), 55.6);
a(t(51, 1), 60);
a(t(-55.59, -1), -55.5);
a(t(-59, 1), -50);
};

View File

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

View File

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

View File

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

View File

@@ -1,12 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t(1), 31, "1");
a(t(1000), 22, "1000");
a(t(), 32, "No arguments");
a(t(Infinity), 32, "Infinity");
a(t(-Infinity), 32, "-Infinity");
a(t("foo"), 32, "String");
a(t(true), 31, "Boolean");
a(t(3.5), 30, "Float");
};

View File

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

View File

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

View File

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

View File

@@ -1,13 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 1, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), Infinity, "-Infinity");
a(t(1), 1.5430806348152437, "1");
a(t(Number.MAX_VALUE), Infinity);
a(t(-Number.MAX_VALUE), Infinity);
a(t(Number.MIN_VALUE), 1);
a(t(-Number.MIN_VALUE), 1);
};

View File

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

View File

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

View File

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

View File

@@ -1,9 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), -1, "-Infinity");
a(t(1).toFixed(15), "1.718281828459045", "1");
};

View File

@@ -1,8 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t(55.59, -1), 55.5);
a(t(59, 1), 50);
a(t(-55.51, -1), -55.6);
a(t(-51, 1), -60);
};

View File

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

View File

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

View File

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

View File

@@ -1,9 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), -Infinity, "-Infinity");
a(t(1.337), 1.3370000123977661, "1");
};

View File

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

View File

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

View File

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

View File

@@ -1,11 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t(), 0, "No arguments");
a(t(0, -0, 0), 0, "Zeros");
a(t(4, NaN, Infinity), Infinity, "Infinity");
a(t(4, NaN, -Infinity), Infinity, "Infinity");
a(t(4, NaN, 34), NaN, "NaN");
a(t(3, 4), 5, "#1");
a(t(3, 4, 5), 7.0710678118654755, "#2");
};

View File

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

View File

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

View File

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

View File

@@ -1,9 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t(), 0, "No arguments");
a(t(0, 0), 0, "Zeros");
a(t(2, 4), 8, "#1");
a(t(-1, 8), -8, "#2");
a(t(0xfffffffe, 5), -10, "#3");
};

View File

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

View File

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

View File

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

View File

@@ -1,10 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(-0.5), NaN, "Less than 0");
a(t(0), -Infinity, "0");
a(t(1), 0, "1");
a(t(Infinity), Infinity, "Infinity");
a(t(2), 0.3010299956639812, "Other");
};

View File

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

View File

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

View File

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

View File

@@ -1,10 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(-1.5), NaN, "Less than -1");
a(t(-1), -Infinity, "-1");
a(t(0), 0, "0");
a(t(Infinity), Infinity, "Infinity");
a(t(1), 0.6931471805599453, "Other");
};

View File

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

View File

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

View File

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

View File

@@ -1,10 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(-0.5), NaN, "Less than 0");
a(t(0), -Infinity, "0");
a(t(1), 0, "1");
a(t(Infinity), Infinity, "Infinity");
a(t(3).toFixed(15), "1.584962500721156", "Other");
};

View File

@@ -1,14 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t(55.55, -1), 55.6);
a(t(55.549, -1), 55.5);
a(t(55, 1), 60);
a(t(54.9, 1), 50);
a(t(-55.55, -1), -55.5);
a(t(-55.551, -1), -55.6);
a(t(-55, 1), -50);
a(t(-55.1, 1), -60);
a(t(1.005, -2), 1.01);
a(t(-1.005, -2), -1.0);
};

View File

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

View File

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

View File

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

View File

@@ -1,11 +0,0 @@
"use strict";
var is = require("../../../object/is");
module.exports = function (t, a) {
a(is(t(0), +0), true, "+0");
a(is(t(-0), -0), true, "-0");
a(t({}), NaN, true, "NaN");
a(t(-234234234), -1, "Negative");
a(t(234234234), 1, "Positive");
};

View File

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

View File

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

View File

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

View File

@@ -1,13 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), -Infinity, "-Infinity");
a(t(1), 1.1752011936438014, "1");
a(t(Number.MAX_VALUE), Infinity);
a(t(-Number.MAX_VALUE), -Infinity);
a(t(Number.MIN_VALUE), 5e-324);
a(t(-Number.MIN_VALUE), -5e-324);
};

View File

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

View File

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

View File

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

View File

@@ -1,11 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), 1, "Infinity");
a(t(-Infinity), -1, "-Infinity");
a(t(1), 0.7615941559557649, "1");
a(t(Number.MAX_VALUE), 1);
a(t(-Number.MAX_VALUE), -1);
};

View File

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

View File

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

View File

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

View File

@@ -1,16 +0,0 @@
"use strict";
var is = require("../../../object/is");
module.exports = function (t, a) {
a(t({}), NaN, "NaN");
a(t(0), 0, "Zero");
a(t(Infinity), Infinity, "Infinity");
a(t(-Infinity), -Infinity, "-Infinity");
a(is(t(0.234), 0), true, "0");
a(is(t(-0.234), -0), true, "-0");
a(t(13.7), 13, "Positive #1");
a(t(12.3), 12, "Positive #2");
a(t(-12.3), -12, "Negative #1");
a(t(-14.7), -14, "Negative #2");
};