Skip to content

Commit

Permalink
Before running tests, clear successful tests
Browse files Browse the repository at this point in the history
Before, if we did in Definitions

(check-expect 1 1)

and then in Interactions

(check-expect 2 2)

we'd get "3 tests passed".
  • Loading branch information
mikesperber committed Dec 19, 2023
1 parent 5370d98 commit 976b9f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdp-lib/test-engine/test-engine.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
(let ((test-object (current-test-object)))
; in case we're re-running
(set-test-object-failed-checks! test-object '())
(set-test-object-successful-tests! test-object '())
;; signature violations come before running tests, and there's no
;; way to easily re-run them, so so don't reset them here
(for-each (lambda (thunk)
Expand Down

0 comments on commit 976b9f2

Please sign in to comment.