Skip to content
Snippets Groups Projects
Commit 8e1e9c03 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Add tests.

parent 610ed564
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,38 @@ Tactic failure: iInv: invariant "H2" not found.
: string
The command has indeed failed with message:
Tactic failure: iMod: "H" not fresh.
"test_iIntros_lc"
: string
1 goal
Σ : gFunctors
invGS0 : invGS Σ
cinvG0 : cinvG Σ
na_invG0 : na_invG Σ
n, m : nat
============================
"Hlc1" : £ (S n)
"Hlc2" : £ m
--------------------------------------∗
£ (S n)
"lc_iSplit_lc"
: string
2 goals
Σ : gFunctors
invGS0 : invGS Σ
cinvG0 : cinvG Σ
na_invG0 : na_invG Σ
n, m : nat
============================
"Hlc1" : £ (S n)
--------------------------------------∗
£ (S n)
goal 2 is:
"Hlc2" : £ m
--------------------------------------∗
£ m
"test_iInv"
: string
1 goal
......
......@@ -250,6 +250,15 @@ Section iris_tests.
iIntros "H H'". Fail iDestruct "H'" as ">H".
Abort.
(** Make sure that the splitting rule for [+] gets priority over the one for
[S]. See issue #470. *)
Check "test_iIntros_lc".
Lemma test_iIntros_lc n m : £ (S n + m) -∗ £ (S n).
Proof. iIntros "[Hlc1 Hlc2]". Show. iExact "Hlc1". Qed.
Check "lc_iSplit_lc".
Lemma lc_iSplit_lc n m : £ (S n) -∗ £ m -∗ £ (S n + m).
Proof. iIntros "Hlc1 Hlc2". iSplitL "Hlc1". Show. all: done. Qed.
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