Skip to content

Commit 976b9f2

Browse files
committed
Before running tests, clear successful tests
Before, if we did in Definitions (check-expect 1 1) and then in Interactions (check-expect 2 2) we'd get "3 tests passed".
1 parent 5370d98 commit 976b9f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

htdp-lib/test-engine/test-engine.rkt

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
(let ((test-object (current-test-object)))
177177
; in case we're re-running
178178
(set-test-object-failed-checks! test-object '())
179+
(set-test-object-successful-tests! test-object '())
179180
;; signature violations come before running tests, and there's no
180181
;; way to easily re-run them, so so don't reset them here
181182
(for-each (lambda (thunk)

0 commit comments

Comments
 (0)