From 5f5e1655e18c38c4f70223f20b6175692caf3380 Mon Sep 17 00:00:00 2001
From: Rick Waldron <waldron.rick@gmail.com>
Date: Fri, 23 Jun 2017 11:09:21 -0400
Subject: [PATCH] harness test: nan.js

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
---
 test/harness/nans.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 test/harness/nans.js

diff --git a/test/harness/nans.js b/test/harness/nans.js
new file mode 100644
index 0000000000..51a16ba788
--- /dev/null
+++ b/test/harness/nans.js
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 Rick Waldron, 2016 the V8 project authors.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+description: >
+    Including nans.js will expose:
+
+        var distinctNaNs = [
+          0/0, Infinity/Infinity, -(0/0), Math.pow(-1, 0.5), -Math.pow(-1, 0.5)
+        ];
+
+includes: [nans.js]
+---*/
+
+assert.sameValue(isNaN(distinctNaNs[0]), true);
+assert.sameValue(isNaN(distinctNaNs[1]), true);
+assert.sameValue(isNaN(distinctNaNs[2]), true);
+assert.sameValue(isNaN(distinctNaNs[3]), true);
+assert.sameValue(isNaN(distinctNaNs[4]), true);
-- 
GitLab