mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Old-style function call Utility for running opa yaml tests Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
20 lines
285 B
YAML
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
|