mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 22:16:10 +03:00
[Z3 encoding]: Add negative tests for rationals
This commit is contained in:
parent
1dc1d6a3b8
commit
f5a3a19a09
10
tests/test_proof/bad/output/rationals-empty.catala_en.Proof
Normal file
10
tests/test_proof/bad/output/rationals-empty.catala_en.Proof
Normal file
@ -0,0 +1,10 @@
|
||||
[ERROR] [A.y] This variable might return an empty error:
|
||||
--> tests/test_proof/bad/rationals-empty.catala_en
|
||||
|
|
||||
6 | context y content boolean
|
||||
| ^
|
||||
+ Test
|
||||
Counterexample generation is disabled so none was generated.
|
||||
[RESULT] [A.y] No two exceptions to ever overlap for this variable
|
||||
[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,10 @@
|
||||
[RESULT] [A.y] This variable never returns an empty error
|
||||
[ERROR] [A.y] At least two exceptions overlap for this variable:
|
||||
--> tests/test_proof/bad/rationals-overlap.catala_en
|
||||
|
|
||||
6 | context y content boolean
|
||||
| ^
|
||||
+ Test
|
||||
Counterexample generation is disabled so none was generated.
|
||||
[RESULT] [A.x] This variable never returns an empty error
|
||||
[RESULT] [A.x] No two exceptions to ever overlap for this variable
|
11
tests/test_proof/bad/rationals-empty.catala_en
Normal file
11
tests/test_proof/bad/rationals-empty.catala_en
Normal file
@ -0,0 +1,11 @@
|
||||
## Test
|
||||
|
||||
```catala
|
||||
declaration scope A:
|
||||
context x content decimal
|
||||
context y content boolean
|
||||
|
||||
scope A:
|
||||
definition x equals 1.
|
||||
definition y under condition x >. 1./.3. consequence equals true
|
||||
```
|
12
tests/test_proof/bad/rationals-overlap.catala_en
Normal file
12
tests/test_proof/bad/rationals-overlap.catala_en
Normal file
@ -0,0 +1,12 @@
|
||||
## Test
|
||||
|
||||
```catala
|
||||
declaration scope A:
|
||||
context x content decimal
|
||||
context y content boolean
|
||||
|
||||
scope A:
|
||||
definition x equals 1.
|
||||
definition y under condition x >=. 1./.3. consequence equals true
|
||||
definition y under condition x <=. 1./.3. consequence equals false
|
||||
```
|
Loading…
Reference in New Issue
Block a user