catala/tests/test_proof/good/functions.catala_en
2022-01-11 16:13:34 +01:00

14 lines
449 B
Markdown

## Test
```catala
declaration scope A:
context x content integer depends on boolean
context z content integer
scope A:
definition x of y under condition y consequence equals 0
definition x of y under condition not y consequence equals 1
definition z under condition x of true = 0 consequence equals 0
definition z under condition x of true < 0 consequence equals -1
definition z under condition x of true > 0 consequence equals 1
```