aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/math/tanh
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/test/math/tanh')
-rw-r--r--node_modules/es5-ext/test/math/tanh/implement.js7
-rw-r--r--node_modules/es5-ext/test/math/tanh/index.js3
-rw-r--r--node_modules/es5-ext/test/math/tanh/is-implemented.js5
-rw-r--r--node_modules/es5-ext/test/math/tanh/shim.js11
4 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/es5-ext/test/math/tanh/implement.js b/node_modules/es5-ext/test/math/tanh/implement.js
new file mode 100644
index 000000000..8503711f4
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/implement.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var isImplemented = require("../../../math/tanh/is-implemented");
+
+module.exports = function (a) {
+ a(isImplemented(), true);
+};
diff --git a/node_modules/es5-ext/test/math/tanh/index.js b/node_modules/es5-ext/test/math/tanh/index.js
new file mode 100644
index 000000000..10bb8f65d
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/tanh/is-implemented.js b/node_modules/es5-ext/test/math/tanh/is-implemented.js
new file mode 100644
index 000000000..5003e7e93
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/is-implemented.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(typeof t(), "boolean");
+};
diff --git a/node_modules/es5-ext/test/math/tanh/shim.js b/node_modules/es5-ext/test/math/tanh/shim.js
new file mode 100644
index 000000000..5da3c0875
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/shim.js
@@ -0,0 +1,11 @@
+"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);
+};