Files
regorus/tests/interpreter/cases/rule/object.yaml
Ming-Wei Shih c0972ad2ba Update license to MIT
Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
2023-02-09 19:40:35 +00:00

36 lines
550 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: simple
data: {}
modules:
- |
package test
x[a] = b {
a = "hello"
b = "world"
}
query: data.test
want_result:
x:
"hello": "world"
- note: loop
data: {}
modules:
- |
package test
x[a] = b {
a = ["hello", "world"][_]
b = 1
}
query: data.test
want_result:
x:
"hello": 1
"world": 1