Files
regorus/tests/interpreter/cases/rule/old_set.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

32 lines
547 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: index-syntax
data: {}
modules:
- |
package test
x[a] {
a = ["hello", "world"][_]
}
query: data.test
want_result:
x:
set!: ["hello", "world"]
- note: special-case-field-syntax
data: {}
modules:
- |
package test
x.a {
a = ["hello", "world"][_]
true
}
query: data.test
want_result:
x:
set!: ["a"]