@surrealdb/lezer 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-run-tests.log +500 -42
- package/dist/index.cjs +67 -65
- package/dist/index.js +67 -65
- package/package.json +2 -2
- package/src/parser.js +17 -17
- package/src/parser.terms.js +231 -229
- package/src/surrealql.grammar +41 -37
- package/src/tokens.js +2 -0
- package/test/misc/comments.txt +44 -0
- package/test/misc/functions.txt +63 -0
- package/test/misc/identifiers.txt +22 -0
- package/test/misc/javascript.txt +34 -0
- package/test/misc/operators.txt +213 -0
- package/test/misc/parameters.txt +23 -0
- package/test/misc/subqueries.txt +23 -0
- package/test/statements/alter.txt +47 -0
- package/test/statements/break-continue.txt +15 -0
- package/test/statements/create.txt +103 -0
- package/test/statements/define.txt +281 -0
- package/test/statements/delete.txt +63 -0
- package/test/statements/for.txt +19 -0
- package/test/statements/if-else.txt +47 -0
- package/test/statements/info.txt +63 -0
- package/test/statements/insert.txt +63 -0
- package/test/statements/let.txt +39 -0
- package/test/statements/live.txt +47 -0
- package/test/statements/option.txt +23 -0
- package/test/statements/rebuild.txt +15 -0
- package/test/statements/relate.txt +63 -0
- package/test/statements/remove.txt +95 -0
- package/test/statements/return.txt +39 -0
- package/test/statements/select.txt +231 -0
- package/test/statements/show.txt +31 -0
- package/test/statements/sleep.txt +23 -0
- package/test/statements/throw.txt +23 -0
- package/test/statements/transactions.txt +47 -0
- package/test/statements/update.txt +87 -0
- package/test/statements/upsert.txt +55 -0
- package/test/statements/use.txt +39 -0
- package/test/test-surrealql.js +81 -9
- package/test/values/arrays.txt +47 -0
- package/test/values/casting.txt +95 -0
- package/test/values/closures.txt +39 -0
- package/test/values/durations.txt +41 -0
- package/test/values/format-strings.txt +39 -0
- package/test/values/geometries.txt +23 -0
- package/test/values/idioms.txt +228 -0
- package/test/values/literals.txt +46 -0
- package/test/values/numbers.txt +75 -0
- package/test/values/objects.txt +64 -0
- package/test/values/ranges.txt +31 -0
- package/test/values/record-ids.txt +71 -0
- package/test/values/regex.txt +31 -0
- package/test/values/sets.txt +31 -0
- package/test/values/strings.txt +69 -0
- package/test/statement.txt +0 -132
- package/test/value.txt +0 -259
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$ lezer-generator src/surrealql.grammar -o src/parser.js && rollup -c
|
|
2
|
-
Precedence specified for unknown token "f'" (src/surrealql.grammar
|
|
3
|
-
Precedence specified for unknown token "f\"" (src/surrealql.grammar
|
|
2
|
+
Precedence specified for unknown token "f'" (src/surrealql.grammar 1638:15)
|
|
3
|
+
Precedence specified for unknown token "f\"" (src/surrealql.grammar 1638:20)
|
|
4
4
|
Wrote src/parser.js and src/parser.terms.js
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1m./dist/index.cjs, ./dist/index.js[22m...[39m
|
|
7
|
-
[32mcreated [1m./dist/index.cjs, ./dist/index.js[22m in [
|
|
7
|
+
[32mcreated [1m./dist/index.cjs, ./dist/index.js[22m in [1m91ms[22m[39m
|
|
@@ -1,43 +1,501 @@
|
|
|
1
1
|
$ bun run test/test-surrealql.js
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
[1m=== STATEMENTS ===[0m
|
|
4
|
+
|
|
5
|
+
[1mstatements/alter.txt[0m
|
|
6
|
+
[32m✔[0m Alter table basic
|
|
7
|
+
[32m✔[0m Alter table drop
|
|
8
|
+
[32m✔[0m Alter table schemafull
|
|
9
|
+
[32m✔[0m Alter table schemaless
|
|
10
|
+
[32m✔[0m Alter table with comment
|
|
11
|
+
[32m✔[0m Alter table with permissions none
|
|
12
|
+
[2m 6 tests: 6 passed[0m
|
|
13
|
+
|
|
14
|
+
[1mstatements/break-continue.txt[0m
|
|
15
|
+
[32m✔[0m Break statement
|
|
16
|
+
[32m✔[0m Continue statement
|
|
17
|
+
[2m 2 tests: 2 passed[0m
|
|
18
|
+
|
|
19
|
+
[1mstatements/create.txt[0m
|
|
20
|
+
[32m✔[0m Simple create
|
|
21
|
+
[32m✔[0m Create ONLY
|
|
22
|
+
[32m✔[0m Create with SET
|
|
23
|
+
[32m✔[0m Create with CONTENT
|
|
24
|
+
[32m✔[0m Create with RETURN fields
|
|
25
|
+
[32m✔[0m Create with RETURN AFTER
|
|
26
|
+
[32m✔[0m Create with RETURN BEFORE
|
|
27
|
+
[32m✔[0m Create with RETURN DIFF
|
|
28
|
+
[32m✔[0m Create with TIMEOUT
|
|
29
|
+
[32m✔[0m Create with PARALLEL
|
|
30
|
+
[32m✔[0m Create with record ID target
|
|
31
|
+
[32m✔[0m Create with variable target
|
|
32
|
+
[32m✔[0m Create multiple targets
|
|
33
|
+
[2m 13 tests: 13 passed[0m
|
|
34
|
+
|
|
35
|
+
[1mstatements/define.txt[0m
|
|
36
|
+
[32m✔[0m Define namespace
|
|
37
|
+
[32m✔[0m Define namespace if not exists
|
|
38
|
+
[32m✔[0m Define namespace overwrite
|
|
39
|
+
[32m✔[0m Define database
|
|
40
|
+
[32m✔[0m Define user
|
|
41
|
+
[32m✔[0m Define event
|
|
42
|
+
[32m✔[0m Define field
|
|
43
|
+
[32m✔[0m Define field with default
|
|
44
|
+
[32m✔[0m Define field with assert
|
|
45
|
+
[32m✔[0m Define field readonly
|
|
46
|
+
[32m✔[0m Define field flexible type
|
|
47
|
+
[32m✔[0m Define field with permissions
|
|
48
|
+
[32m✔[0m Define field with reference
|
|
49
|
+
[32m✔[0m Define field with computed
|
|
50
|
+
[32m✔[0m Define index unique
|
|
51
|
+
[32m✔[0m Define index search analyzer
|
|
52
|
+
[32m✔[0m Define index mtree
|
|
53
|
+
[32m✔[0m Define index hnsw
|
|
54
|
+
[32m✔[0m Define function
|
|
55
|
+
[32m✔[0m Define param
|
|
56
|
+
[32m✔[0m Define table
|
|
57
|
+
[32m✔[0m Define table schemafull
|
|
58
|
+
[32m✔[0m Define table schemaless
|
|
59
|
+
[32m✔[0m Define table drop
|
|
60
|
+
[32m✔[0m Define table type relation
|
|
61
|
+
[32m✔[0m Define table type normal
|
|
62
|
+
[32m✔[0m Define table type any
|
|
63
|
+
[32m✔[0m Define table as view
|
|
64
|
+
[32m✔[0m Define table with changefeed
|
|
65
|
+
[32m✔[0m Define table with permissions none
|
|
66
|
+
[32m✔[0m Define table with comment
|
|
67
|
+
[32m✔[0m Define access on database
|
|
68
|
+
[32m✔[0m Define config graphql
|
|
69
|
+
[32m✔[0m Define bucket
|
|
70
|
+
[32m✔[0m Define scope
|
|
71
|
+
[2m 35 tests: 35 passed[0m
|
|
72
|
+
|
|
73
|
+
[1mstatements/delete.txt[0m
|
|
74
|
+
[32m✔[0m Simple delete
|
|
75
|
+
[32m✔[0m Delete ONLY
|
|
76
|
+
[32m✔[0m Delete with WHERE
|
|
77
|
+
[32m✔[0m Delete with RETURN BEFORE
|
|
78
|
+
[32m✔[0m Delete with TIMEOUT
|
|
79
|
+
[32m✔[0m Delete with PARALLEL
|
|
80
|
+
[32m✔[0m Delete record ID
|
|
81
|
+
[32m✔[0m Delete with WHERE and RETURN
|
|
82
|
+
[2m 8 tests: 8 passed[0m
|
|
83
|
+
|
|
84
|
+
[1mstatements/for.txt[0m
|
|
85
|
+
[32m✔[0m For loop with array
|
|
86
|
+
[32m✔[0m For loop with variable
|
|
87
|
+
[2m 2 tests: 2 passed[0m
|
|
88
|
+
|
|
89
|
+
[1mstatements/if-else.txt[0m
|
|
90
|
+
[32m✔[0m Modern if
|
|
91
|
+
[32m✔[0m Modern if else
|
|
92
|
+
[32m✔[0m Modern if else if else
|
|
93
|
+
[32m✔[0m Legacy if then end
|
|
94
|
+
[32m✔[0m Legacy if then else end
|
|
95
|
+
[32m✔[0m Legacy if then else if then else end
|
|
96
|
+
[2m 6 tests: 6 passed[0m
|
|
97
|
+
|
|
98
|
+
[1mstatements/info.txt[0m
|
|
99
|
+
[32m✔[0m Info for root
|
|
100
|
+
[32m✔[0m Info for namespace
|
|
101
|
+
[32m✔[0m Info for namespace long form
|
|
102
|
+
[32m✔[0m Info for database
|
|
103
|
+
[32m✔[0m Info for database long form
|
|
104
|
+
[32m✔[0m Info for scope
|
|
105
|
+
[32m✔[0m Info for table
|
|
106
|
+
[32m✔[0m Info for table with structure
|
|
107
|
+
[2m 8 tests: 8 passed[0m
|
|
108
|
+
|
|
109
|
+
[1mstatements/insert.txt[0m
|
|
110
|
+
[32m✔[0m Insert with object
|
|
111
|
+
[32m✔[0m Insert with VALUES syntax
|
|
112
|
+
[32m✔[0m Insert with IGNORE
|
|
113
|
+
[32m✔[0m Insert RELATION
|
|
114
|
+
[32m✔[0m Insert bulk array
|
|
115
|
+
[32m✔[0m Insert with ON DUPLICATE KEY UPDATE
|
|
116
|
+
[32m✔[0m Insert with RETURN
|
|
117
|
+
[32m✔[0m Insert with variable
|
|
118
|
+
[2m 8 tests: 8 passed[0m
|
|
119
|
+
|
|
120
|
+
[1mstatements/let.txt[0m
|
|
121
|
+
[32m✔[0m Let with value
|
|
122
|
+
[32m✔[0m Let with number
|
|
123
|
+
[32m✔[0m Let with subquery in parens
|
|
124
|
+
[32m✔[0m Let with subquery statement
|
|
125
|
+
[32m✔[0m Let with typed parameter
|
|
126
|
+
[2m 5 tests: 5 passed[0m
|
|
127
|
+
|
|
128
|
+
[1mstatements/live.txt[0m
|
|
129
|
+
[32m✔[0m Live select all
|
|
130
|
+
[32m✔[0m Live select from record ID
|
|
131
|
+
[32m✔[0m Live select DIFF
|
|
132
|
+
[32m✔[0m Live select specific fields
|
|
133
|
+
[32m✔[0m Live select with WHERE
|
|
134
|
+
[32m✔[0m Kill statement
|
|
135
|
+
[2m 6 tests: 6 passed[0m
|
|
136
|
+
|
|
137
|
+
[1mstatements/option.txt[0m
|
|
138
|
+
[32m✔[0m Option without value
|
|
139
|
+
[32m✔[0m Option with true
|
|
140
|
+
[32m✔[0m Option with false
|
|
141
|
+
[2m 3 tests: 3 passed[0m
|
|
142
|
+
|
|
143
|
+
[1mstatements/rebuild.txt[0m
|
|
144
|
+
[32m✔[0m Rebuild index
|
|
145
|
+
[32m✔[0m Rebuild index if exists
|
|
146
|
+
[2m 2 tests: 2 passed[0m
|
|
147
|
+
|
|
148
|
+
[1mstatements/relate.txt[0m
|
|
149
|
+
[32m✔[0m Simple relate
|
|
150
|
+
[32m✔[0m Relate ONLY
|
|
151
|
+
[32m✔[0m Relate with SET
|
|
152
|
+
[32m✔[0m Relate with CONTENT
|
|
153
|
+
[32m✔[0m Relate with RETURN
|
|
154
|
+
[32m✔[0m Relate with ident subjects
|
|
155
|
+
[32m✔[0m Relate with variable subject
|
|
156
|
+
[32m✔[0m Relate with array subject
|
|
157
|
+
[2m 8 tests: 8 passed[0m
|
|
158
|
+
|
|
159
|
+
[1mstatements/remove.txt[0m
|
|
160
|
+
[32m✔[0m Remove namespace
|
|
161
|
+
[32m✔[0m Remove database
|
|
162
|
+
[32m✔[0m Remove user
|
|
163
|
+
[32m✔[0m Remove token
|
|
164
|
+
[32m✔[0m Remove event
|
|
165
|
+
[32m✔[0m Remove field
|
|
166
|
+
[32m✔[0m Remove index
|
|
167
|
+
[32m✔[0m Remove analyzer
|
|
168
|
+
[32m✔[0m Remove function
|
|
169
|
+
[32m✔[0m Remove param
|
|
170
|
+
[32m✔[0m Remove scope
|
|
171
|
+
[32m✔[0m Remove bucket
|
|
172
|
+
[2m 12 tests: 12 passed[0m
|
|
173
|
+
|
|
174
|
+
[1mstatements/return.txt[0m
|
|
175
|
+
[32m✔[0m Return value
|
|
176
|
+
[32m✔[0m Return string
|
|
177
|
+
[32m✔[0m Return expression
|
|
178
|
+
[32m✔[0m Return variable
|
|
179
|
+
[32m✔[0m Return function call
|
|
180
|
+
[2m 5 tests: 5 passed[0m
|
|
181
|
+
|
|
182
|
+
[1mstatements/select.txt[0m
|
|
183
|
+
[32m✔[0m Simple select all
|
|
184
|
+
[32m✔[0m Select specific fields
|
|
185
|
+
[32m✔[0m Select with alias
|
|
186
|
+
[32m✔[0m Select VALUE
|
|
187
|
+
[32m✔[0m Select ONLY
|
|
188
|
+
[32m✔[0m Select with WHERE
|
|
189
|
+
[32m✔[0m Select with ORDER BY
|
|
190
|
+
[32m✔[0m Select with ORDER BY DESC
|
|
191
|
+
[32m✔[0m Select with GROUP BY
|
|
192
|
+
[32m✔[0m Select with GROUP ALL
|
|
193
|
+
[32m✔[0m Select with LIMIT
|
|
194
|
+
[32m✔[0m Select with LIMIT BY
|
|
195
|
+
[32m✔[0m Select with START
|
|
196
|
+
[32m✔[0m Select with START AT
|
|
197
|
+
[32m✔[0m Select with LIMIT and START
|
|
198
|
+
[32m✔[0m Select with FETCH
|
|
199
|
+
[32m✔[0m Select with SPLIT
|
|
200
|
+
[32m✔[0m Select with OMIT
|
|
201
|
+
[32m✔[0m Select with WITH INDEX
|
|
202
|
+
[32m✔[0m Select with WITH NOINDEX
|
|
203
|
+
[32m✔[0m Select with EXPLAIN
|
|
204
|
+
[32m✔[0m Select with EXPLAIN FULL
|
|
205
|
+
[32m✔[0m Select with PARALLEL
|
|
206
|
+
[32m✔[0m Select with TEMPFILES
|
|
207
|
+
[32m✔[0m Select with TIMEOUT
|
|
208
|
+
[32m✔[0m Select with VERSION
|
|
209
|
+
[32m✔[0m Select with multiple clauses
|
|
210
|
+
[32m✔[0m Select from multiple targets
|
|
211
|
+
[32m✔[0m Select from subquery
|
|
212
|
+
[2m 29 tests: 29 passed[0m
|
|
213
|
+
|
|
214
|
+
[1mstatements/show.txt[0m
|
|
215
|
+
[32m✔[0m Show changes for table
|
|
216
|
+
[32m✔[0m Show changes with since
|
|
217
|
+
[32m✔[0m Show changes with limit
|
|
218
|
+
[32m✔[0m Show changes with since and limit
|
|
219
|
+
[2m 4 tests: 4 passed[0m
|
|
220
|
+
|
|
221
|
+
[1mstatements/sleep.txt[0m
|
|
222
|
+
[32m✔[0m Sleep with seconds
|
|
223
|
+
[32m✔[0m Sleep with milliseconds
|
|
224
|
+
[32m✔[0m Sleep with multi-part duration
|
|
225
|
+
[2m 3 tests: 3 passed[0m
|
|
226
|
+
|
|
227
|
+
[1mstatements/throw.txt[0m
|
|
228
|
+
[32m✔[0m Throw string
|
|
229
|
+
[32m✔[0m Throw variable
|
|
230
|
+
[32m✔[0m Throw expression
|
|
231
|
+
[2m 3 tests: 3 passed[0m
|
|
232
|
+
|
|
233
|
+
[1mstatements/transactions.txt[0m
|
|
234
|
+
[32m✔[0m Begin
|
|
235
|
+
[32m✔[0m Begin transaction
|
|
236
|
+
[32m✔[0m Cancel
|
|
237
|
+
[32m✔[0m Cancel transaction
|
|
238
|
+
[32m✔[0m Commit
|
|
239
|
+
[32m✔[0m Commit transaction
|
|
240
|
+
[2m 6 tests: 6 passed[0m
|
|
241
|
+
|
|
242
|
+
[1mstatements/update.txt[0m
|
|
243
|
+
[32m✔[0m Simple update
|
|
244
|
+
[32m✔[0m Update ONLY
|
|
245
|
+
[32m✔[0m Update with SET
|
|
246
|
+
[32m✔[0m Update with CONTENT
|
|
247
|
+
[32m✔[0m Update with MERGE
|
|
248
|
+
[32m✔[0m Update with REPLACE
|
|
249
|
+
[32m✔[0m Update with UNSET
|
|
250
|
+
[32m✔[0m Update with WHERE
|
|
251
|
+
[32m✔[0m Update with RETURN
|
|
252
|
+
[32m✔[0m Update with TIMEOUT
|
|
253
|
+
[32m✔[0m Update with PARALLEL
|
|
254
|
+
[2m 11 tests: 11 passed[0m
|
|
255
|
+
|
|
256
|
+
[1mstatements/upsert.txt[0m
|
|
257
|
+
[32m✔[0m Simple upsert
|
|
258
|
+
[32m✔[0m Upsert ONLY
|
|
259
|
+
[32m✔[0m Upsert with SET
|
|
260
|
+
[32m✔[0m Upsert with CONTENT
|
|
261
|
+
[32m✔[0m Upsert with MERGE
|
|
262
|
+
[32m✔[0m Upsert with WHERE
|
|
263
|
+
[32m✔[0m Upsert with RETURN
|
|
264
|
+
[2m 7 tests: 7 passed[0m
|
|
265
|
+
|
|
266
|
+
[1mstatements/use.txt[0m
|
|
267
|
+
[32m✔[0m Use namespace short
|
|
268
|
+
[32m✔[0m Use namespace long
|
|
269
|
+
[32m✔[0m Use database short
|
|
270
|
+
[32m✔[0m Use database long
|
|
271
|
+
[32m✔[0m Use namespace and database
|
|
272
|
+
[2m 5 tests: 5 passed[0m
|
|
273
|
+
|
|
274
|
+
[1m=== VALUES ===[0m
|
|
275
|
+
|
|
276
|
+
[1mvalues/arrays.txt[0m
|
|
277
|
+
[32m✔[0m Empty array
|
|
278
|
+
[32m✔[0m Single element
|
|
279
|
+
[32m✔[0m Multiple elements
|
|
280
|
+
[32m✔[0m Trailing comma
|
|
281
|
+
[32m✔[0m Nested arrays
|
|
282
|
+
[32m✔[0m Mixed types
|
|
283
|
+
[2m 6 tests: 6 passed[0m
|
|
284
|
+
|
|
285
|
+
[1mvalues/casting.txt[0m
|
|
286
|
+
[32m✔[0m Simple type cast
|
|
287
|
+
[32m✔[0m Union type cast
|
|
288
|
+
[32m✔[0m Literal string type cast
|
|
289
|
+
[32m✔[0m Literal union type cast
|
|
290
|
+
[32m✔[0m Literal string union
|
|
291
|
+
[32m✔[0m Array literal type cast
|
|
292
|
+
[32m✔[0m Array union literal type cast
|
|
293
|
+
[32m✔[0m Object type cast
|
|
294
|
+
[32m✔[0m Object union type cast
|
|
295
|
+
[32m✔[0m Complex nested type cast
|
|
296
|
+
[32m✔[0m Parameterized type cast
|
|
297
|
+
[32m✔[0m Complex union object type cast
|
|
298
|
+
[2m 12 tests: 12 passed[0m
|
|
299
|
+
|
|
300
|
+
[1mvalues/closures.txt[0m
|
|
301
|
+
[32m✔[0m Empty closure
|
|
302
|
+
[32m✔[0m Closure with param
|
|
303
|
+
[32m✔[0m Closure with typed param
|
|
304
|
+
[32m✔[0m Closure with multiple params
|
|
305
|
+
[32m✔[0m Closure with return type
|
|
306
|
+
[2m 5 tests: 5 passed[0m
|
|
307
|
+
|
|
308
|
+
[1mvalues/durations.txt[0m
|
|
309
|
+
[32m✔[0m Single duration parts
|
|
310
|
+
[32m✔[0m Multi-part duration
|
|
311
|
+
[32m✔[0m Complex duration
|
|
312
|
+
[2m 3 tests: 3 passed[0m
|
|
313
|
+
|
|
314
|
+
[1mvalues/format-strings.txt[0m
|
|
315
|
+
[32m✔[0m Basic format string
|
|
316
|
+
[32m✔[0m Format string with expression
|
|
317
|
+
[32m✔[0m Escaped quote in format string
|
|
318
|
+
[32m✔[0m Nested format strings
|
|
319
|
+
[32m✔[0m Single quoted format string
|
|
320
|
+
[2m 5 tests: 5 passed[0m
|
|
321
|
+
|
|
322
|
+
[1mvalues/geometries.txt[0m
|
|
323
|
+
[32m✔[0m Point with decimals
|
|
324
|
+
[32m✔[0m Point with integers
|
|
325
|
+
[32m✔[0m Point with floats
|
|
326
|
+
[2m 3 tests: 3 passed[0m
|
|
327
|
+
|
|
328
|
+
[1mvalues/idioms.txt[0m
|
|
329
|
+
[32m✔[0m Dot notation path
|
|
330
|
+
[32m✔[0m Wildcard on record ID
|
|
331
|
+
[32m✔[0m Lookup arrow right with any
|
|
332
|
+
[32m✔[0m Lookup arrow right
|
|
333
|
+
[32m✔[0m Multiple lookups
|
|
334
|
+
[32m✔[0m Record ID lookup
|
|
335
|
+
[32m✔[0m SELECT with lookup path
|
|
336
|
+
[32m✔[0m Method call on number
|
|
337
|
+
[32m✔[0m Filter with variable key
|
|
338
|
+
[32m✔[0m Filter with ident key
|
|
339
|
+
[32m✔[0m Filter with string key
|
|
340
|
+
[32m✔[0m Record ID filter
|
|
341
|
+
[32m✔[0m Array index access
|
|
342
|
+
[32m✔[0m Array variable access
|
|
343
|
+
[32m✔[0m Array WHERE filter
|
|
344
|
+
[32m✔[0m Array question mark filter
|
|
345
|
+
[32m✔[0m Recurse unbounded
|
|
346
|
+
[32m✔[0m Recurse with path expression
|
|
347
|
+
[32m✔[0m Recurse with destructure
|
|
348
|
+
[32m✔[0m Recurse with fixed depth
|
|
349
|
+
[32m✔[0m Recurse with min range
|
|
350
|
+
[32m✔[0m Recurse with full range
|
|
351
|
+
[32m✔[0m Recurse with max range
|
|
352
|
+
[32m✔[0m At reference with subscript
|
|
353
|
+
[32m✔[0m At reference with ident
|
|
354
|
+
[2m 25 tests: 25 passed[0m
|
|
355
|
+
|
|
356
|
+
[1mvalues/literals.txt[0m
|
|
357
|
+
[32m✔[0m Boolean true
|
|
358
|
+
[32m✔[0m Boolean false
|
|
359
|
+
[32m✔[0m Null
|
|
360
|
+
[32m✔[0m None
|
|
361
|
+
[32m✔[0m Mixed literals
|
|
362
|
+
[2m 5 tests: 5 passed[0m
|
|
363
|
+
|
|
364
|
+
[1mvalues/numbers.txt[0m
|
|
365
|
+
[32m✔[0m Integer
|
|
366
|
+
[32m✔[0m Float
|
|
367
|
+
[32m✔[0m Float with exponent
|
|
368
|
+
[32m✔[0m Float with f suffix
|
|
369
|
+
[32m✔[0m Float special values
|
|
370
|
+
[32m✔[0m Decimal
|
|
371
|
+
[32m✔[0m Negative numbers
|
|
372
|
+
[32m✔[0m Positive explicit sign
|
|
373
|
+
[2m 8 tests: 8 passed[0m
|
|
374
|
+
|
|
375
|
+
[1mvalues/objects.txt[0m
|
|
376
|
+
[32m✔[0m Simple object
|
|
377
|
+
[32m✔[0m Object with string keys
|
|
378
|
+
[32m✔[0m Empty object
|
|
379
|
+
[32m✔[0m Empty object with space
|
|
380
|
+
[32m✔[0m Block vs Object
|
|
381
|
+
[32m✔[0m Object followed by value
|
|
382
|
+
[32m✔[0m Nested objects
|
|
383
|
+
[2m 7 tests: 7 passed[0m
|
|
384
|
+
|
|
385
|
+
[1mvalues/ranges.txt[0m
|
|
386
|
+
[32m✔[0m Exclusive range
|
|
387
|
+
[32m✔[0m Right-open range
|
|
388
|
+
[32m✔[0m Left-open inclusive range
|
|
389
|
+
[32m✔[0m Simple range
|
|
390
|
+
[2m 4 tests: 4 passed[0m
|
|
391
|
+
|
|
392
|
+
[1mvalues/record-ids.txt[0m
|
|
393
|
+
[32m✔[0m Simple record ID
|
|
394
|
+
[32m✔[0m Record ID with ident value
|
|
395
|
+
[32m✔[0m Number followed by ident in record ID
|
|
396
|
+
[32m✔[0m Record ID function call
|
|
397
|
+
[32m✔[0m Record ID with tick-quoted table
|
|
398
|
+
[32m✔[0m Record ID with tick-quoted value
|
|
399
|
+
[32m✔[0m Record ID with object value
|
|
400
|
+
[32m✔[0m Record ID with array value
|
|
401
|
+
[32m✔[0m Record ID with prefixed string value
|
|
402
|
+
[2m 9 tests: 9 passed[0m
|
|
403
|
+
|
|
404
|
+
[1mvalues/regex.txt[0m
|
|
405
|
+
[32m✔[0m Basic regex
|
|
406
|
+
[32m✔[0m Regex with flags
|
|
407
|
+
[32m✔[0m Regex with character class
|
|
408
|
+
[32m✔[0m Regex with escape
|
|
409
|
+
[2m 4 tests: 4 passed[0m
|
|
410
|
+
|
|
411
|
+
[1mvalues/sets.txt[0m
|
|
412
|
+
[32m✔[0m Set with single trailing comma
|
|
413
|
+
[32m✔[0m Set with lone comma
|
|
414
|
+
[32m✔[0m Set with two elements
|
|
415
|
+
[32m✔[0m Set with three elements
|
|
416
|
+
[2m 4 tests: 4 passed[0m
|
|
417
|
+
|
|
418
|
+
[1mvalues/strings.txt[0m
|
|
419
|
+
[32m✔[0m Double quoted string
|
|
420
|
+
[32m✔[0m Single quoted string
|
|
421
|
+
[32m✔[0m Escaped double quotes
|
|
422
|
+
[32m✔[0m Escaped single quotes
|
|
423
|
+
[32m✔[0m Mixed quotes
|
|
424
|
+
[32m✔[0m Multiline string
|
|
425
|
+
[32m✔[0m Empty strings
|
|
426
|
+
[32m✔[0m Prefixed strings
|
|
427
|
+
[2m 8 tests: 8 passed[0m
|
|
428
|
+
|
|
429
|
+
[1m=== MISC ===[0m
|
|
430
|
+
|
|
431
|
+
[1mmisc/comments.txt[0m
|
|
432
|
+
[32m✔[0m Hash comment
|
|
433
|
+
[32m✔[0m Dash comment
|
|
434
|
+
[32m✔[0m Slash comment
|
|
435
|
+
[32m✔[0m Block comment
|
|
436
|
+
[32m✔[0m Block comment standalone
|
|
437
|
+
[2m 5 tests: 5 passed[0m
|
|
438
|
+
|
|
439
|
+
[1mmisc/functions.txt[0m
|
|
440
|
+
[32m✔[0m Namespaced function call
|
|
441
|
+
[32m✔[0m Custom function call
|
|
442
|
+
[32m✔[0m Rand function
|
|
443
|
+
[32m✔[0m Count function
|
|
444
|
+
[32m✔[0m Versioned function call
|
|
445
|
+
[32m✔[0m No-argument function call
|
|
446
|
+
[32m✔[0m Multiple argument function call
|
|
447
|
+
[32m✔[0m Variable function call
|
|
448
|
+
[2m 8 tests: 8 passed[0m
|
|
449
|
+
|
|
450
|
+
[1mmisc/identifiers.txt[0m
|
|
451
|
+
[32m✔[0m Raw identifiers
|
|
452
|
+
[32m✔[0m Keywords used as identifiers in field position
|
|
453
|
+
[2m 2 tests: 2 passed[0m
|
|
454
|
+
|
|
455
|
+
[1mmisc/javascript.txt[0m
|
|
456
|
+
[32m✔[0m JavaScript function with args
|
|
457
|
+
[32m✔[0m Simple JavaScript function
|
|
458
|
+
[2m 2 tests: 2 passed[0m
|
|
459
|
+
|
|
460
|
+
[1mmisc/operators.txt[0m
|
|
461
|
+
[32m✔[0m Addition
|
|
462
|
+
[32m✔[0m Subtraction
|
|
463
|
+
[32m✔[0m Multiplication
|
|
464
|
+
[32m✔[0m Division
|
|
465
|
+
[32m✔[0m Power
|
|
466
|
+
[32m✔[0m Equality
|
|
467
|
+
[32m✔[0m Inequality
|
|
468
|
+
[32m✔[0m Less than
|
|
469
|
+
[32m✔[0m Greater than
|
|
470
|
+
[32m✔[0m Less than or equal
|
|
471
|
+
[32m✔[0m Greater than or equal
|
|
472
|
+
[32m✔[0m Logical AND
|
|
473
|
+
[32m✔[0m Logical OR
|
|
474
|
+
[32m✔[0m Null coalescing
|
|
475
|
+
[32m✔[0m Elvis operator
|
|
476
|
+
[32m✔[0m Unicode containment operators
|
|
477
|
+
[32m✔[0m Keyword operator containsnot
|
|
478
|
+
[32m✔[0m IS operator
|
|
479
|
+
[32m✔[0m IN keyword operator
|
|
480
|
+
[32m✔[0m Fuzzy match
|
|
481
|
+
[32m✔[0m All match
|
|
482
|
+
[32m✔[0m Unicode multiplication
|
|
483
|
+
[32m✔[0m Unicode division
|
|
484
|
+
[32m✔[0m Matches operator with distance
|
|
485
|
+
[32m✔[0m Addition assignment in expression
|
|
486
|
+
[32m✔[0m Subtraction assignment in expression
|
|
487
|
+
[2m 26 tests: 26 passed[0m
|
|
488
|
+
|
|
489
|
+
[1mmisc/parameters.txt[0m
|
|
490
|
+
[32m✔[0m Simple variable
|
|
491
|
+
[32m✔[0m Variable with underscore
|
|
492
|
+
[32m✔[0m Variable with numbers
|
|
493
|
+
[2m 3 tests: 3 passed[0m
|
|
494
|
+
|
|
495
|
+
[1mmisc/subqueries.txt[0m
|
|
496
|
+
[32m✔[0m Subquery with select
|
|
497
|
+
[32m✔[0m Subquery with value
|
|
498
|
+
[32m✔[0m Subquery with create
|
|
499
|
+
[2m 3 tests: 3 passed[0m
|
|
500
|
+
|
|
501
|
+
[1mTotal[0m: 354 | [32mPassed: 354[0m | [2mFailed: 0[0m
|