Skip to content

Commit

Permalink
proof-stat: add test for proof-check-annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriktews committed May 2, 2024
1 parent cc8db24 commit e58c693
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ci/simple-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ coq-proof-stat-batch-test:
--eval '(proof-check-report nil "proof_stat.human.gen-out")'
emacs -batch -l ../../generic/proof-site.el proof_stat.v \
--eval '(proof-check-report t "proof_stat.tap.gen-out")'
emacs -batch -l ../../generic/proof-site.el proof_stat.v \
--eval '(proof-check-annotate nil t)'
cmp proof_stat.human.gen-out proof_stat.human.exp-out && \
cmp proof_stat.tap.gen-out proof_stat.tap.exp-out && \
git diff --exit-code -- proof_stat.v && \
touch coq-proof-stat-batch-test

.PHONY: clean
Expand Down
4 changes: 2 additions & 2 deletions ci/simple-tests/proof_stat.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Definition a : nat := 4.

Lemma a1_equal_4 : a = 2 * 2.
Lemma a1_equal_4 : a = 2 * 2. (* FAIL *)
Proof using.
simpl.
zzzz. (* this proof should fail *)
Expand All @@ -18,7 +18,7 @@ Proof using.
trivial.
Qed.

Lemma b2_equal_6 : b = 2 * 3.
Lemma b2_equal_6 : b = 2 * 3. (* FAIL *)
Proof using. (* this proof should fail *)
Qed.

0 comments on commit e58c693

Please sign in to comment.