catala/tests/proof/good/simple_vars.catala_en

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
771 B
Plaintext
Raw Normal View History

## Test
```catala
declaration scope A:
2023-06-03 19:02:57 +03:00
internal x content integer
internal y content boolean
output z content integer
scope A:
definition y equals true
definition x under condition y consequence equals 0
definition x under condition not y consequence equals 1
definition z under condition x = 0 consequence equals 0
definition z under condition x < 0 consequence equals -1
definition z under condition x > 0 consequence equals 1
```
```catala-test-inline
$ catala Typecheck --check-invariants
┌─[RESULT]─
│ All invariant checks passed
└─
┌─[RESULT]─
│ Typechecking successful!
└─
```
```catala-test-inline
$ catala Proof --disable-counterexamples
┌─[RESULT]─
│ No errors found during the proof mode run.
└─
```