2022-03-24 19:23:31 +03:00
|
|
|
## Test
|
|
|
|
|
|
|
|
```catala
|
|
|
|
declaration scope A:
|
2023-06-03 19:02:57 +03:00
|
|
|
internal x content duration
|
|
|
|
output y content boolean
|
2022-03-24 19:23:31 +03:00
|
|
|
|
|
|
|
scope A:
|
|
|
|
definition x equals 94 day
|
2022-12-07 17:37:26 +03:00
|
|
|
definition y under condition (x + x) > 100 day consequence equals true
|
|
|
|
definition y under condition (x + x) <= 100 day consequence equals false
|
2022-03-24 19:23:31 +03:00
|
|
|
```
|
2022-07-08 17:23:09 +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-01-25 19:55:32 +03:00
|
|
|
[RESULT] All invariant checks passed
|
2023-12-05 18:54:14 +03:00
|
|
|
[RESULT] Typechecking successful!
|
|
|
|
```
|
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```catala-test-inline
|
2023-12-05 14:00:15 +03:00
|
|
|
$ catala Proof --disable-counterexamples
|
2022-09-23 15:04:13 +03:00
|
|
|
[RESULT] No errors found during the proof mode run.
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|