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

33 lines
605 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: simple
data: {}
modules:
- |
package test
import future.keywords
tbl contains name if {
name = ["a", "b", "c"][_]
}
query: data.test
want_result:
tbl:
set!: ["c", "b", "a"]
- note: arithmetic
data: {}
modules:
- |
package test
import future.keywords
tbl contains x + 10 if {
x = [1, 2, 3][_]
}
query: data.test
want_result:
tbl:
set!: [11, 12, 13]