mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
cb0b3a1790
Authored by anakrish and mingweishih Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
19 lines
134 B
Rego
19 lines
134 B
Rego
package test
|
|
|
|
add {
|
|
1 + 2 == 3
|
|
}
|
|
|
|
sub {
|
|
5 - 1 == 4
|
|
}
|
|
|
|
mul {
|
|
3 * 4 == 12
|
|
}
|
|
|
|
# Lock down float operation.
|
|
div {
|
|
21 / 5 == 4.2
|
|
}
|