-
-
Notifications
You must be signed in to change notification settings - Fork 561
Expand file tree
/
Copy pathcanonical-data.json
More file actions
188 lines (188 loc) · 4.57 KB
/
canonical-data.json
File metadata and controls
188 lines (188 loc) · 4.57 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"exercise": "matching-brackets",
"cases": [
{
"uuid": "81ec11da-38dd-442a-bcf9-3de7754609a5",
"description": "paired square brackets",
"property": "isPaired",
"input": {
"value": "[]"
},
"expected": true
},
{
"uuid": "287f0167-ac60-4b64-8452-a0aa8f4e5238",
"description": "empty string",
"property": "isPaired",
"input": {
"value": ""
},
"expected": true
},
{
"uuid": "6c3615a3-df01-4130-a731-8ef5f5d78dac",
"description": "unpaired brackets",
"property": "isPaired",
"input": {
"value": "[["
},
"expected": false
},
{
"uuid": "9d414171-9b98-4cac-a4e5-941039a97a77",
"description": "wrong ordered brackets",
"property": "isPaired",
"input": {
"value": "}{"
},
"expected": false
},
{
"uuid": "f0f97c94-a149-4736-bc61-f2c5148ffb85",
"description": "wrong closing bracket",
"property": "isPaired",
"input": {
"value": "{]"
},
"expected": false
},
{
"uuid": "754468e0-4696-4582-a30e-534d47d69756",
"description": "paired with whitespace",
"property": "isPaired",
"input": {
"value": "{ }"
},
"expected": true
},
{
"uuid": "ba84f6ee-8164-434a-9c3e-b02c7f8e8545",
"description": "partially paired brackets",
"property": "isPaired",
"input": {
"value": "{[])"
},
"expected": false
},
{
"uuid": "3c86c897-5ff3-4a2b-ad9b-47ac3a30651d",
"description": "simple nested brackets",
"property": "isPaired",
"input": {
"value": "{[]}"
},
"expected": true
},
{
"uuid": "2d137f2c-a19e-4993-9830-83967a2d4726",
"description": "several paired brackets",
"property": "isPaired",
"input": {
"value": "{}[]"
},
"expected": true
},
{
"uuid": "2e1f7b56-c137-4c92-9781-958638885a44",
"description": "paired and nested brackets",
"property": "isPaired",
"input": {
"value": "([{}({}[])])"
},
"expected": true
},
{
"uuid": "84f6233b-e0f7-4077-8966-8085d295c19b",
"description": "unopened closing brackets",
"property": "isPaired",
"input": {
"value": "{[)][]}"
},
"expected": false
},
{
"uuid": "9b18c67d-7595-4982-b2c5-4cb949745d49",
"description": "unpaired and nested brackets",
"property": "isPaired",
"input": {
"value": "([{])"
},
"expected": false
},
{
"uuid": "a0205e34-c2ac-49e6-a88a-899508d7d68e",
"description": "paired and wrong nested brackets",
"property": "isPaired",
"input": {
"value": "[({]})"
},
"expected": false
},
{
"uuid": "1d5c093f-fc84-41fb-8c2a-e052f9581602",
"description": "paired and wrong nested brackets but innermost are correct",
"comments": [
"Ensures last opened bracket is not the only one being traced"
],
"property": "isPaired",
"input": {
"value": "[({}])"
},
"expected": false
},
{
"uuid": "ef47c21b-bcfd-4998-844c-7ad5daad90a8",
"description": "paired and incomplete brackets",
"property": "isPaired",
"input": {
"value": "{}["
},
"expected": false
},
{
"uuid": "a4675a40-a8be-4fc2-bc47-2a282ce6edbe",
"description": "too many closing brackets",
"property": "isPaired",
"input": {
"value": "[]]"
},
"expected": false
},
{
"uuid": "a345a753-d889-4b7e-99ae-34ac85910d1a",
"description": "early unexpected brackets",
"property": "isPaired",
"input": {
"value": ")()"
},
"expected": false
},
{
"uuid": "21f81d61-1608-465a-b850-baa44c5def83",
"description": "early mismatched brackets",
"property": "isPaired",
"input": {
"value": "{)()"
},
"expected": false
},
{
"uuid": "99255f93-261b-4435-a352-02bdecc9bdf2",
"description": "math expression",
"property": "isPaired",
"input": {
"value": "(((185 + 223.85) * 15) - 543)/2"
},
"expected": true
},
{
"uuid": "8e357d79-f302-469a-8515-2561877256a1",
"description": "complex latex expression",
"property": "isPaired",
"input": {
"value": "\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)"
},
"expected": true
}
]
}