aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/7.7_Punctuators.json
blob: 7494efc7e8fd1347b10c87e28b75a062f00b8f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
 "testCollection": {
  "name": "7.7_Punctuators",
  "numTests": 11,
  "tests": [
   {
    "section": "7.7",
    "description": "Using all punctuators",
    "test": "//CHECK#1\n  ({});[];\n  this.NaN; \n  1 < 2 > 3 <= 4 >= 5 == 6 != 7 === 8 !== 9;\n  1 + 2 - 3 * 4 % 5 / 6 << 7 >> 8 >>> 9;\n  this.NaN++; ++this.NaN; this.NaN--; --this.NaN;\n  1 & 2 | 3 ^ 4 && !5 || ~6;\n  1 ? 2 : 3;\n  this.NaN = 1; this.NaN += 2; this.NaN -= 3; this.NaN *= 4; this.NaN /= 5;\n  this.NaN %= 6; this.NaN <<= 7; this.NaN >>= 8; this.NaN >>>= 9;\n  this.NaN &= 1; this.NaN |= 2; this.NaN ^= 3;  \n",
    "id": "S7.7_A1"
   },
   {
    "section": "7.7",
    "description": "Try to use {} as a Unicode \\u007B\\u007D",
    "negative": "",
    "test": "\\u007B\\u007D;\n",
    "id": "S7.7_A2_T1"
   },
   {
    "section": "7.7",
    "description": "Try to use / as a Unicode \\u002F",
    "negative": "",
    "test": "1\\u002F2;\n",
    "id": "S7.7_A2_T10"
   },
   {
    "section": "7.7",
    "description": "Try to use () as Unicode \\u00281\\u0029",
    "negative": "",
    "test": "\\u00281\\u0029;\n",
    "id": "S7.7_A2_T2"
   },
   {
    "section": "7.7",
    "description": "Try to use [] as a Unicode \\u005B\\u005D",
    "negative": "",
    "test": "\\u005B\\u005D;\n",
    "id": "S7.7_A2_T3"
   },
   {
    "section": "7.7",
    "description": ": Try to use ; as a Unicode \\u003B;",
    "negative": "",
    "test": "\\u003B;\n",
    "id": "S7.7_A2_T4"
   },
   {
    "section": "7.7",
    "description": "Try to use . as a Unicode \\u002E",
    "negative": "",
    "test": "x = 1;\nthis\\u002Ex;\n",
    "id": "S7.7_A2_T5"
   },
   {
    "section": "7.7",
    "description": "Try to use , as a Unicode \\u002C",
    "negative": "",
    "test": "1\\u002C2;\n",
    "id": "S7.7_A2_T6"
   },
   {
    "section": "7.7",
    "description": "Try to use + as a Unicode \\u002B",
    "negative": "",
    "test": "1\\u002B2;\n",
    "id": "S7.7_A2_T7"
   },
   {
    "section": "7.7",
    "description": "Try to use -  as a Unicode \\u002D",
    "negative": "",
    "test": "1\\u002D2;\n",
    "id": "S7.7_A2_T8"
   },
   {
    "section": "7.7",
    "description": "Try to use * as a Unicode \\u002A",
    "negative": "",
    "test": "1\\u002A2;\n",
    "id": "S7.7_A2_T9"
   }
  ]
 }
}