Files
regorus/tests/interpreter/cases/basic_001.yaml
Anand Krishnamoorthi cb0b3a1790 Code from github.com/anakrish/rego-rs
Authored by anakrish and mingweishih

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2023-02-09 10:56:54 -08:00

33 lines
560 B
YAML

# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
cases:
- data: {}
modules:
- |
package test
add {
1 + 2 == 3
}
sub {
5 - 1 == 4
}
mul {
3 * 4 == 12
}
# Lock down float operation.
div {
21 / 5 == 4.2
}
note: arithmetic/basic
query: data.test
sort_bindings: true
want_result:
add: true
sub: true
mul: true
div: true