mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 00:41:05 +03:00
[Z3backend] Bad unit tests for EInj node
This commit is contained in:
parent
d758170cde
commit
cb36b9d72f
15
tests/test_proof/bad/enums_inj-empty.catala_en
Normal file
15
tests/test_proof/bad/enums_inj-empty.catala_en
Normal file
@ -0,0 +1,15 @@
|
||||
## Article
|
||||
|
||||
```catala
|
||||
declaration enumeration E:
|
||||
-- C1
|
||||
-- C2
|
||||
|
||||
declaration scope A:
|
||||
context x content E
|
||||
context y content integer
|
||||
|
||||
scope A:
|
||||
definition x equals C1
|
||||
definition y under condition x = C1 consequence equals 1
|
||||
```
|
17
tests/test_proof/bad/enums_inj-overlap.catala_en
Normal file
17
tests/test_proof/bad/enums_inj-overlap.catala_en
Normal file
@ -0,0 +1,17 @@
|
||||
## Article
|
||||
|
||||
```catala
|
||||
declaration enumeration E:
|
||||
-- C1
|
||||
-- C2
|
||||
|
||||
declaration scope A:
|
||||
context x content E
|
||||
context y content integer
|
||||
|
||||
scope A:
|
||||
definition x equals C1
|
||||
definition y under condition x = C1 consequence equals 1
|
||||
definition y under condition x = C2 consequence equals 2
|
||||
definition y under condition x = C2 consequence equals 3
|
||||
```
|
10
tests/test_proof/bad/output/enums_inj-empty.catala_en.Proof
Normal file
10
tests/test_proof/bad/output/enums_inj-empty.catala_en.Proof
Normal file
@ -0,0 +1,10 @@
|
||||
[ERROR] [A.y] This variable might return an empty error:
|
||||
--> tests/test_proof/bad/enums_inj-empty.catala_en
|
||||
|
|
||||
10 | context y content integer
|
||||
| ^
|
||||
+ Article
|
||||
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/enums_inj-overlap.catala_en
|
||||
|
|
||||
10 | context y content integer
|
||||
| ^
|
||||
+ Article
|
||||
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
|
Loading…
Reference in New Issue
Block a user