aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/ide
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-05-20 10:09:58 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-05-20 10:09:58 +0000
commitc44946e4c81c6c3bf615b7b4c293f6721affb15a (patch)
treeccd03fa10fdd8ab6b17f0e848ec440b4a4e2f7e1 /test-suite/ide
parent6d72bed68ae739c3c513cd50fcbadf92e576f6da (diff)
Fixed coqide bug #1856 that was introduced in revision 10915.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10950 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/ide')
-rw-r--r--test-suite/ide/undo.v74
1 files changed, 74 insertions, 0 deletions
diff --git a/test-suite/ide/undo.v b/test-suite/ide/undo.v
new file mode 100644
index 000000000..98913ac4e
--- /dev/null
+++ b/test-suite/ide/undo.v
@@ -0,0 +1,74 @@
+(* Here are a sequences of scripts to test interactively with undo and
+ replay in coqide proof sessions *)
+
+(* Undoing arbitrary commands, as first step *)
+
+Theorem a:True.
+Set Printing All.
+assert True by trivial.
+trivial.
+Qed.
+
+(* Undoing arbitrary commands, as non-first step *)
+
+Theorem a:True.
+assert True by trivial.
+Set Printing All.
+assert True by trivial.
+trivial.
+Qed.
+
+(* Undoing declarations, as first step *)
+(* was bugged in 8.1 *)
+
+Theorem a:True.
+Inductive T : Type := I.
+trivial.
+Qed.
+
+(* Undoing declarations, as first step *)
+(* new in 8.2 *)
+
+Theorem a:True.
+Definition b:=O.
+Definition c:=O.
+assert True by trivial.
+trivial.
+Qed.
+
+(* Undoing declarations, as non-first step *)
+(* new in 8.2 *)
+
+Theorem a:True.
+assert True by trivial.
+Definition b:=O.
+Definition c:=O.
+assert True by trivial.
+trivial.
+Qed.
+
+(* Undoing declarations, interleaved with proof steps *)
+(* new in 8.2 *)
+
+Theorem a:True.
+assert True by trivial.
+Definition b:=O.
+assert True by trivial.
+Definition c:=O.
+assert True by trivial.
+trivial.
+Qed.
+
+(* Undoing declarations, interleaved with proof steps and commands *)
+(* new in 8.2 *)
+
+Theorem a:True.
+assert True by trivial.
+Definition b:=O.
+Set Printing All.
+assert True by trivial.
+Focus.
+Definition c:=O.
+assert True by trivial.
+trivial.
+Qed.