Files
regorus/tests/interpreter/cases/some/tests.yaml
Anand Krishnamoorthi cf4fbdbb90 some .. in implementation
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2023-02-28 09:38:40 +05:30

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]