@@ -106,7 +106,7 @@ In particular, test that with proof-omit-proofs-option configured:
106
106
107
107
; ; Check 1: check that the proof is valid and omit can be disabled
108
108
(message " 1: check that the proof is valid and omit can be disabled " )
109
- (should (search-forward " automatic test marker 4" nil t ))
109
+ (should (search-forward " automatic test marker 4 " nil t ))
110
110
(forward-line -1 )
111
111
; ; simulate C-u prefix argument
112
112
(proof-goto-point '(4 ))
@@ -140,19 +140,19 @@ In particular, test that with proof-omit-proofs-option configured:
140
140
141
141
; ; Check 2: check proof-locked-face is active at marker 2 and 3
142
142
(message " 2: check proof-locked-face is active at marker 2 and 3 " )
143
- (should (search-backward " automatic test marker 2" nil t ))
143
+ (should (search-backward " automatic test marker 2 " nil t ))
144
144
(should (eq (first-overlay-face) 'proof-locked-face ))
145
- (should (search-forward " automatic test marker 3" nil t ))
145
+ (should (search-forward " automatic test marker 3 " nil t ))
146
146
(should (eq (first-overlay-face) 'proof-locked-face ))
147
147
148
148
; ; Check 3: check that the second proof is omitted
149
149
(message " 3: check that the second proof is omitted " )
150
150
; ; first retract
151
- (should (search-backward " automatic test marker 1" nil t ))
151
+ (should (search-backward " automatic test marker 1 " nil t ))
152
152
(proof-goto-point)
153
153
(wait-for-coq)
154
154
; ; move forward again
155
- (should (search-forward " automatic test marker 4" nil t ))
155
+ (should (search-forward " automatic test marker 4 " nil t ))
156
156
(forward-line -1 )
157
157
(proof-goto-point)
158
158
(wait-for-coq)
@@ -174,7 +174,7 @@ In particular, test that with proof-omit-proofs-option configured:
174
174
175
175
; ; Check 4: check proof-omitted-proof-face is active at marker 3
176
176
(message " 4: check proof-omitted-proof-face is active at marker 3 " )
177
- (should (search-backward " automatic test marker 3" nil t ))
177
+ (should (search-backward " automatic test marker 3 " nil t ))
178
178
; ; debug overlay order
179
179
; ; (mapc
180
180
; ; (lambda (ov)
@@ -185,17 +185,17 @@ In particular, test that with proof-omit-proofs-option configured:
185
185
186
186
; ; Check 5: check proof-locked-face is active at marker 1 and 2
187
187
(message " 5: check proof-locked-face is active at marker 1 and 2 " )
188
- (should (search-backward " automatic test marker 1" nil t ))
188
+ (should (search-backward " automatic test marker 1 " nil t ))
189
189
(should (eq (first-overlay-face) 'proof-locked-face ))
190
- (should (search-forward " automatic test marker 2" nil t ))
190
+ (should (search-forward " automatic test marker 2 " nil t ))
191
191
(should (eq (first-overlay-face) 'proof-locked-face ))
192
192
193
193
; ; Check 6: check that a partial proof at the end is not omitted
194
194
(message " 6: check that a partial proof at the end is not omitted " )
195
195
(goto-char (point-min ))
196
196
(proof-goto-point)
197
197
(wait-for-coq)
198
- (should (search-forward " automatic test marker 3" nil t ))
198
+ (should (search-forward " automatic test marker 3 " nil t ))
199
199
(forward-line 2 )
200
200
(proof-goto-point)
201
201
(wait-for-coq)
@@ -223,11 +223,11 @@ The sources for the test contain a local attribute in form of
223
223
(goto-char (point-min ))
224
224
; ; Check that proofs with Hint commands are never omitted
225
225
(message " Check that proofs with Hint commands are never omitted " )
226
- (should (search-forward " automatic test marker 6" nil t ))
226
+ (should (search-forward " automatic test marker 6 " nil t ))
227
227
(forward-line -1 )
228
228
(proof-goto-point)
229
229
(wait-for-coq)
230
- (should (search-backward " automatic test marker 5" nil t ))
230
+ (should (search-backward " automatic test marker 5 " nil t ))
231
231
(should (eq (first-overlay-face) 'proof-locked-face )))
232
232
233
233
@@ -245,14 +245,36 @@ This test only checks the faces in the middle of the proof."
245
245
(goto-char (point-min ))
246
246
; ; Check that proofs for Let local declarations are never omitted.
247
247
(message " Check that proofs for Let local declarations are never omitted. " )
248
- (should (search-forward " automatic test marker 8" nil t ))
248
+ (should (search-forward " automatic test marker 8 " nil t ))
249
249
(forward-line -1 )
250
250
(proof-goto-point)
251
251
(wait-for-coq)
252
- (should (search-backward " automatic test marker 7-1" nil t ))
252
+ (should (search-backward " automatic test marker 7-1 " nil t ))
253
253
(should (eq (first-overlay-face) 'proof-locked-face ))
254
254
255
255
; ; Check that theorems behind Let definitions are omitted.
256
256
(message " Check that theorems behind Let definitions are omitted. " )
257
- (should (search-forward " automatic test marker 7-2" nil t ))
257
+ (should (search-forward " automatic test marker 7-2 " nil t ))
258
258
(should (eq (first-overlay-face) 'proof-omitted-proof-face )))
259
+
260
+ (ert-deftest omit-proofs-omit-bullets-and-braces ()
261
+ :expected-result :failed
262
+ (let ((proof-omit-proofs-option t )
263
+ pos-10)
264
+ (message " omit-proofs-omit-bullets-and-braces: Check bullets and braces " )
265
+ (reset-coq)
266
+ (find-file " omit_test.v" )
267
+ (goto-char (point-min ))
268
+ ; ; Check that proofs with bullets and braces are omitted
269
+ (message " Check that proofs with bullets and braces are omitted " )
270
+ (should (search-forward " automatic test marker 10 " nil t ))
271
+ (setq pos-10 (point ))
272
+ (forward-line 1 )
273
+ (proof-goto-point)
274
+ (wait-for-coq)
275
+ (goto-char pos-10)
276
+ ; ; Comment behind should be locked
277
+ (should (eq (first-overlay-face) 'proof-locked-face ))
278
+ ; ; Proof with bullets and braces should be omitted
279
+ (should (search-backward " automatic test marker 9 " nil t ))
280
+ (should (eq (first-overlay-face) 'proof-omitted-proof-face ))))
0 commit comments