2023-03-28 06:49:14 +03:00
|
|
|
## Test
|
|
|
|
|
|
|
|
```catala
|
|
|
|
declaration scope A:
|
2023-06-03 19:02:57 +03:00
|
|
|
output x content boolean
|
2023-03-28 06:49:14 +03:00
|
|
|
|
|
|
|
scope A:
|
|
|
|
definition x under condition
|
|
|
|
let y equals true in
|
|
|
|
y
|
|
|
|
consequence equals true
|
|
|
|
```
|
2023-03-28 07:03:44 +03:00
|
|
|
|
2023-12-05 18:54:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
```catala-test-inline
|
2023-12-05 14:00:15 +03:00
|
|
|
$ catala Typecheck --check-invariants
|
2024-05-03 13:20:09 +03:00
|
|
|
┌─[RESULT]─
|
2024-05-03 16:12:52 +03:00
|
|
|
│ All invariant checks passed
|
2024-05-03 13:20:09 +03:00
|
|
|
└─
|
|
|
|
┌─[RESULT]─
|
2024-05-03 16:12:52 +03:00
|
|
|
│ Typechecking successful!
|
2024-05-03 13:20:09 +03:00
|
|
|
└─
|
2023-12-05 18:54:14 +03:00
|
|
|
```
|
|
|
|
|
2023-03-28 07:03:44 +03:00
|
|
|
```catala-test-inline
|
2023-12-05 14:00:15 +03:00
|
|
|
$ catala Proof --disable-counterexamples
|
2024-05-03 13:20:09 +03:00
|
|
|
┌─[RESULT]─
|
2024-05-03 16:12:52 +03:00
|
|
|
│ No errors found during the proof mode run.
|
2024-05-03 13:20:09 +03:00
|
|
|
└─
|
2023-03-28 07:03:44 +03:00
|
|
|
```
|