summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A3.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A3.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A3.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A3.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A3.js
new file mode 100644
index 000000000..5f51dc53a
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A3.js
@@ -0,0 +1,21 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S15.8.2.11_A3;
+ * @section: 15.8.2.11;
+ * @assertion: +0 is considered to be larger than -0;
+ * @description: Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to +0;
+ */
+
+// CHECK#1
+if (Math.max(-0, +0) !== +0)
+{
+ $ERROR("#1: 'Math.max(-0, +0) !== +0'");
+}
+
+// CHECK#1
+if (Math.max(+0, -0) !== +0)
+{
+ $ERROR("#2: 'Math.max(+0, -0) !== +0'");
+}