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.1_abs/S15.8.2.1_A1.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.1_abs/S15.8.2.1_A1.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.1_abs/S15.8.2.1_A1.js16
1 files changed, 16 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.1_abs/S15.8.2.1_A1.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.1_abs/S15.8.2.1_A1.js
new file mode 100644
index 000000000..537257b5e
--- /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.1_abs/S15.8.2.1_A1.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: S15.8.2.1_A1;
+ * @section: 15.8.2.1;
+ * @assertion: If x is NaN, Math.abs(x) is NaN;
+ * @description: Checking if Math.abs(NaN) is NaN;
+ */
+
+// CHECK#1
+var x = NaN;
+if (!isNaN(Math.abs(x)))
+{
+ $ERROR("#1: 'var x=NaN; isNaN(Math.abs(x)) === false'");
+}