@@ -92,10 +92,11 @@ configured there may be taken from faces with less priority."
92
92
" Test the omit proofs feature.
93
93
In particular, test that with proof-omit-proofs-option configured:
94
94
- the proof _is_ processed when using a prefix argument
95
- - in this case the proof as normal locked color
95
+ - in this case the proof has normal locked color
96
96
- without prefix arg, the proof is omitted
97
97
- the proof has omitted color then
98
98
- stuff before the proof still has normal color "
99
+ (message " omit-proofs-omit-and-not-omit: Check several omit proofs features " )
99
100
(setq proof-omit-proofs-option t
100
101
proof-three-window-enable nil )
101
102
(reset-coq)
@@ -154,10 +155,21 @@ In particular, test that with proof-omit-proofs-option configured:
154
155
(forward-line -1 )
155
156
(proof-goto-point)
156
157
(wait-for-coq)
157
- (with-current-buffer " *response*"
158
- (goto-char (point-min ))
159
- ; ; There should be a declared message.
160
- (should (looking-at " classic_excluded_middle is declared" )))
158
+ (with-current-buffer " *coq*"
159
+ ; ; There should be an Admit at the second last prompt without error.
160
+ (goto-char (point-max ))
161
+ (should (search-backward " </prompt>" nil t 2 ))
162
+ ; ; move behind prompt
163
+ (forward-char 9 )
164
+ (should (looking-at " Admitted\\ .\n " ))
165
+ (forward-line 1 )
166
+ ; ; There may be an info message about the declaration. The message
167
+ ; ; may be spread over several lines.
168
+ (when (looking-at " <infomsg>" )
169
+ (should (search-forward " </infomsg>" nil t ))
170
+ (forward-line 1 ))
171
+ ; ; no other messages or errors before the next prompt
172
+ (should (looking-at " \n <prompt>Coq <" )))
161
173
162
174
; ; Check 4: check proof-omitted-proof-face is active at marker 3
163
175
(message " 4: check proof-omitted-proof-face is active at marker 3 " )
@@ -184,6 +196,7 @@ the normal `proof-locked-face'.
184
196
185
197
The sources for the test contain a local attribute in form of
186
198
'#[local]', which has been introduced only in Coq version 8.9."
199
+ (message " omit-proofs-never-omit-hints: Check omit proofs feature with Hint " )
187
200
(skip-unless coq--post-v809)
188
201
(setq proof-omit-proofs-option t
189
202
proof-three-window-enable nil )
@@ -206,6 +219,7 @@ Test that proofs for Let local declarations are never omitted and
206
219
that proofs of theorems following a Let definition are omitted.
207
220
208
221
This test only checks the faces in the middle of the proof."
222
+ (message " omit-proofs-never-omit-lets: Check omit proofs feature with Let " )
209
223
(setq proof-omit-proofs-option t
210
224
proof-three-window-enable nil )
211
225
(reset-coq)
0 commit comments