mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-10 06:37:54 +03:00
Z3encoding: Add bad tests related to dates [skip ci]
This commit is contained in:
parent
52f33aa1ae
commit
c8be75ca75
13
tests/test_proof/bad/dates_simple-empty.catala_en
Normal file
13
tests/test_proof/bad/dates_simple-empty.catala_en
Normal file
@ -0,0 +1,13 @@
|
||||
## Test
|
||||
|
||||
```catala
|
||||
declaration scope A:
|
||||
context x content date
|
||||
context y content boolean
|
||||
|
||||
scope A:
|
||||
definition x equals |2022-01-16|
|
||||
definition y under condition x >=@ |2010-01-01| and x <@ |2015-01-01| consequence equals false
|
||||
definition y under condition x >=@ |2015-01-01| and x <@ |2020-01-01| consequence equals true
|
||||
definition y under condition x >=@ |2020-01-01| consequence equals false
|
||||
```
|
14
tests/test_proof/bad/dates_simple-overlap.catala_en
Normal file
14
tests/test_proof/bad/dates_simple-overlap.catala_en
Normal file
@ -0,0 +1,14 @@
|
||||
## Test
|
||||
|
||||
```catala
|
||||
declaration scope A:
|
||||
context x content date
|
||||
context y content boolean
|
||||
|
||||
scope A:
|
||||
definition x equals |2022-01-16|
|
||||
definition y under condition x <=@ |2010-01-01| consequence equals true
|
||||
definition y under condition x >=@ |2010-01-01| and x <@ |2015-01-01| consequence equals false
|
||||
definition y under condition x >=@ |2015-01-01| and x <@ |2020-01-01| consequence equals true
|
||||
definition y under condition x >=@ |2020-01-01| consequence equals false
|
||||
```
|
@ -0,0 +1,6 @@
|
||||
[ERROR] The translation to Z3 failed:
|
||||
TODO
|
||||
[ERROR] The translation to Z3 failed:
|
||||
TODO
|
||||
[RESULT] [A.x] This variable never returns an empty error
|
||||
[RESULT] [A.x] No two exceptions to ever overlap for this variable
|
@ -0,0 +1,6 @@
|
||||
[ERROR] The translation to Z3 failed:
|
||||
TODO
|
||||
[ERROR] The translation to Z3 failed:
|
||||
TODO
|
||||
[RESULT] [A.x] This variable never returns an empty error
|
||||
[RESULT] [A.x] No two exceptions to ever overlap for this variable
|
Loading…
Reference in New Issue
Block a user