aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-04-30 09:39:56 +0200
committerPierre-Marie Pédrot2018-04-30 09:39:56 +0200
commitc1e12fbc64c39739e4a9f7bbf92e42f1bcb6be24 (patch)
tree3ae4ffb92eab12be9e33fad5a5ff0687c6cff540 /test-suite
parent86cfc249dc7cc95d772ed91663491ee8b37c1431 (diff)
parentd94fef210a63db4ff34251afe093041912a7cbde (diff)
Merge PR #6944: Strict focusing using Default Goal Selector.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/goal_selector.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/success/goal_selector.v b/test-suite/success/goal_selector.v
index 8681405175..0951c5c8d4 100644
--- a/test-suite/success/goal_selector.v
+++ b/test-suite/success/goal_selector.v
@@ -53,3 +53,17 @@ Goal True -> exists (x : Prop), x.
Proof.
intro H; eexists ?[x]; only [x]: exact True. 1: assumption.
Qed.
+
+(* Strict focusing! *)
+Set Default Goal Selector "!".
+
+Goal True -> True /\ True /\ True.
+Proof.
+ intro.
+ split;only 2:split.
+ Fail exact I.
+ Fail !:exact I.
+ 1:exact I.
+ - !:exact H.
+ - exact I.
+Qed.