Add bad test for assertions

This commit is contained in:
Aymeric Fromherz 2022-11-08 22:27:17 +01:00
parent 4af44fb519
commit 63572b6963

View File

@ -0,0 +1,28 @@
```catala
declaration scope Foo:
input current_date content date
output x content integer
scope Foo:
assertion current_date >=@ |2020-01-01| and current_date <@ |2022-12-31|
definition x under condition
current_date >=@ |2020-01-01| and current_date <@ |2020-12-31|
consequence equals
1
definition x under condition
current_date >=@ |2021-01-01| and current_date <=@ |2021-12-31|
consequence equals
2
definition x under condition
current_date >=@ |2022-01-01| and current_date <@ |2022-12-31|
consequence equals
3
```
```catala-test-inline
$ catala Proof --disable_counterexamples
[RESULT] TODO
```