aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/15.8.2.1_abs.json
diff options
context:
space:
mode:
Diffstat (limited to 'website/resources/scripts/testcases2/15.8.2.1_abs.json')
-rw-r--r--website/resources/scripts/testcases2/15.8.2.1_abs.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/website/resources/scripts/testcases2/15.8.2.1_abs.json b/website/resources/scripts/testcases2/15.8.2.1_abs.json
new file mode 100644
index 000000000..73e1c10b6
--- /dev/null
+++ b/website/resources/scripts/testcases2/15.8.2.1_abs.json
@@ -0,0 +1,26 @@
+{
+ "testCollection": {
+ "name": "15.8.2.1_abs",
+ "numTests": 3,
+ "tests": [
+ {
+ "section": "15.8.2.1",
+ "description": "Checking if Math.abs(NaN) is NaN",
+ "test": "// CHECK#1\nvar x = NaN;\nif (!isNaN(Math.abs(x)))\n{\n\t$ERROR(\"#1: 'var x=NaN; isNaN(Math.abs(x)) === false'\");\n}\n",
+ "id": "S15.8.2.1_A1"
+ },
+ {
+ "section": "15.8.2.1",
+ "description": "Checking if Math.abs(-0) equals to +0",
+ "test": "// CHECK#1\nvar x = -0;\nif (Math.abs(x) !== +0)\n{\n\t$ERROR(\"#1: 'var x=-0; Math.abs(x) !== +0'\");\n}\n",
+ "id": "S15.8.2.1_A2"
+ },
+ {
+ "section": "15.8.2.1",
+ "description": "Checking if Math.abs(-Infinity) equals to +Infinity",
+ "test": "// CHECK#1\nvar x = -Infinity;\nif (Math.abs(x) !== +Infinity)\n{\n\t$ERROR(\"#1: 'var x=-Infinity; Math.abs(x) !== +Infinity'\");\n}\n",
+ "id": "S15.8.2.1_A3"
+ }
+ ]
+ }
+}