mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 16:28:12 +03:00
Add bad test for assertions
This commit is contained in:
parent
4af44fb519
commit
63572b6963
28
tests/test_proof/bad/assert-empty.catala_en
Normal file
28
tests/test_proof/bad/assert-empty.catala_en
Normal 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user