mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
26 lines
513 B
YAML
26 lines
513 B
YAML
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
cases:
|
|
- note: array
|
|
data: {}
|
|
modules:
|
|
- |
|
|
package test
|
|
import future.keywords
|
|
|
|
r1 = y {
|
|
y1 = [x | some x in [1, 2, 3]; x >= 2]
|
|
y2 = [y | some x, y in [1, 2, 3]; x >= 2]
|
|
y = [y1, y2]
|
|
}
|
|
|
|
r2[x] {
|
|
some x, "l" in ["h", "e", "l", "l", "o"]
|
|
}
|
|
|
|
query: data.test
|
|
want_result:
|
|
r1: [ [2, 3], [3]]
|
|
r2:
|
|
set!: [2, 3]
|