mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 22:16:10 +03:00
32 lines
607 B
Plaintext
32 lines
607 B
Plaintext
## Test
|
|
|
|
```catala
|
|
declaration scope A:
|
|
internal x content duration
|
|
output y content boolean
|
|
|
|
scope A:
|
|
definition x equals 94 day
|
|
definition y under condition (x + x) > 100 day consequence equals true
|
|
definition y under condition (x + x) <= 100 day consequence equals false
|
|
```
|
|
|
|
|
|
|
|
```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.
|
|
└─
|
|
```
|