aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/math/fround/shim.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/test/math/fround/shim.js')
-rw-r--r--node_modules/es5-ext/test/math/fround/shim.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/es5-ext/test/math/fround/shim.js b/node_modules/es5-ext/test/math/fround/shim.js
new file mode 100644
index 00000000..0525bfab
--- /dev/null
+++ b/node_modules/es5-ext/test/math/fround/shim.js
@@ -0,0 +1,9 @@
+"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");
+};