Files
regorus/tests/interpreter/cases/call/oldstyle.yaml
Anand Krishnamoorthi 800e594d52 Arity for builtins (#28)
Old-style function call

Utility for running opa yaml tests

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2023-10-24 10:11:50 -07:00

20 lines
285 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
data: {}
modules:
- |
package test
a = [1, 2, 3, 4]
p = x {
count(a, x)
}
query: data.test.p = x
want_result:
x: 4