mirror of https://github.com/tc39/test262.git
37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
{
|
|
"testCollection": {
|
|
"name": "15.8.1.1_E",
|
|
"numTests": 4,
|
|
"tests": [
|
|
{
|
|
"section": "15.8.1.1",
|
|
"description": "Comparing Math.E with 2.7182818284590452354",
|
|
"test": "$INCLUDE(\"math_precision.js\");\n$INCLUDE(\"math_isequal.js\");\n\n// CHECK#1\nif (!isEqual(Math.E, 2.7182818284590452354)) {\n $ERROR('#1: \\'Math.E is not approximately equal to 2.7182818284590452354\\'');\n}\n",
|
|
"id": "S15.8.1.1_A1"
|
|
},
|
|
{
|
|
"section": "15.8.1.1",
|
|
"description": "Checking if Math.E property has the attribute DontEnum",
|
|
"test": "// CHECK#1\nfor(x in Math) {\n if(x === \"E\") {\n $ERROR('#1: Value Property E of the Math Object hasn\\'t attribute DontEnum: \\'for(x in Math) {x===\"E\"}\\'');\n }\n}\n\n",
|
|
"id": "S15.8.1.1_A2"
|
|
},
|
|
{
|
|
"section": "15.8.1.1",
|
|
"description": "Checking if Math.E property has the attribute DontDelete",
|
|
"strict_mode_negative": "",
|
|
"test": "// CHECK#1\nif (delete Math.E === true) {\n $ERROR('#1: Value Property E of the Math Object hasn\\'t attribute DontDelete: \\'Math.E === true\\'');\n}\n\n",
|
|
"id": "S15.8.1.1_A3",
|
|
"strict_only": ""
|
|
},
|
|
{
|
|
"section": "15.8.1.1",
|
|
"description": "Checking if Math.E property has the attribute ReadOnly",
|
|
"strict_mode_negative": "",
|
|
"test": "// CHECK#1\nvar x = Math.E;\nMath.E = 1;\nif (Math.E !== x) {\n $ERROR('#1: Math.E hasn\\'t ReadOnly: \\'x = Math.E;Math.E = 1;Math.E === x\\'');\n}\n",
|
|
"id": "S15.8.1.1_A4",
|
|
"strict_only": ""
|
|
}
|
|
]
|
|
}
|
|
}
|