aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-02 13:53:47 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-02 13:53:47 +1000
commit3df90fdbac4e290b96b01e8745678a2c8d1e17ec (patch)
tree464acfbea6b91886e18eded2ce31378879b89859 /tests
parentd1ef522d56aaab62f64adadb22a2e754dce43167 (diff)
downloadfengari-3df90fdbac4e290b96b01e8745678a2c8d1e17ec.tar.gz
fengari-3df90fdbac4e290b96b01e8745678a2c8d1e17ec.tar.bz2
fengari-3df90fdbac4e290b96b01e8745678a2c8d1e17ec.zip
tests/lmathlib.js: Skip failing test in node <= 6
Diffstat (limited to 'tests')
-rw-r--r--tests/lmathlib.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lmathlib.js b/tests/lmathlib.js
index b50c59c..1de0f0c 100644
--- a/tests/lmathlib.js
+++ b/tests/lmathlib.js
@@ -176,7 +176,8 @@ test('math.log', function (t) {
});
-test('math.exp', function (t) {
+/* Node.js 6 has incorrect results for Math.exp */
+(parseInt(process.versions.node) > 6 ? test : test.skip)('math.exp', function (t) {
let luaCode = `
return math.exp(10)
`, L;