Skip to content
Snippets Groups Projects
Commit 8e729944 authored by Armaël Guéneau's avatar Armaël Guéneau
Browse files

Add tests for iIntuitionistic/iSpatial/iModCore on non-fresh names

parent 5a0cf609
No related branches found
No related tags found
No related merge requests found
......@@ -752,3 +752,11 @@ Tactic failure: iPure: (φ n) not pure.
: string
The command has indeed failed with message:
Tactic failure: iIntuitionistic: Q not persistent.
"test_iDestruct_intuitionistic_not_fresh"
: string
The command has indeed failed with message:
Tactic failure: iIntuitionistic: "H" not fresh.
"test_iDestruct_spatial_not_fresh"
: string
The command has indeed failed with message:
Tactic failure: iSpatial: "H" not fresh.
......@@ -1650,4 +1650,18 @@ Proof.
auto.
Qed.
Check "test_iDestruct_intuitionistic_not_fresh".
Lemma test_iDestruct_intuitionistic_not_fresh P Q :
P -∗ Q -∗ False.
Proof.
iIntros "H H'". Fail iDestruct "H'" as "#H".
Abort.
Check "test_iDestruct_spatial_not_fresh".
Lemma test_iDestruct_spatial_not_fresh P Q :
P -∗ Q -∗ False.
Proof.
iIntros "H H'". Fail iDestruct "H'" as "-#H".
Abort.
End tactic_tests.
......@@ -168,6 +168,10 @@ Tactic failure: iInv: invariant "H2" not found.
"H" : own γ 1%Qp
--------------------------------------∗
own γ 1%Qp
"test_iDestruct_mod_not_fresh"
: string
The command has indeed failed with message:
Tactic failure: iMod: "H" not fresh.
"test_iInv"
: string
1 goal
......
......@@ -243,6 +243,13 @@ Section iris_tests.
iExact "H".
Qed.
Check "test_iDestruct_mod_not_fresh".
Lemma test_iDestruct_mod_not_fresh P Q :
P -∗ (|={}=> Q) -∗ (|={}=> False).
Proof.
iIntros "H H'". Fail iDestruct "H'" as ">H".
Abort.
End iris_tests.
Section monpred_tests.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment