summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js b/external/contributions/Google/sputnik_conformance_modified/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js
new file mode 100644
index 000000000..e2d97eb77
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/08_Types/8.5_The_Number_Type/S8.5_A11_T1.js
@@ -0,0 +1,16 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S8.5_A11_T1;
+ * @section: 8.5, 7.8.3;
+ * @assertion: The integer 0 has two representations, +0 and -0;
+ * @description: Check 1.0/p_zero !== 1.0/n_zero;
+*/
+
+var p_zero=+0;
+var n_zero=-0;
+
+if (1.0/p_zero === 1.0/n_zero){
+ $ERROR('#1: var p_zero=+0; var n_zero=-0; 1.0/p_zero !== 1.0/n_zero');
+}