From c44946e4c81c6c3bf615b7b4c293f6721affb15a Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 20 May 2008 10:09:58 +0000 Subject: 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 --- test-suite/ide/undo.v | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 test-suite/ide/undo.v (limited to 'test-suite/ide') 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. -- cgit v1.2.3