1 parent 4bac913 commit 0b9bc94Copy full SHA for 0b9bc94
1 file changed
test/com/gfredericks/test/chuck/clojure_test_test.cljc
@@ -28,5 +28,10 @@
28
;; sticking a failing assertion in between two
29
;; passing ones
30
(is (zero? x))
31
- (is (= x x)))]
32
- (is (not (:result (quick-check 20 failing-prop))))))
+ (is (= x x)))
+ ret (quick-check 20 failing-prop)
33
+ counters @*report-counters*]
34
+ (dosync (ref-set *report-counters* *initial-report-counters*))
35
+ (is (pos? (:fail counters)))
36
+ ;; Reset the report counters back because we want the test to pass if the "test" failed
37
+ (is (not (:result ret)))))
0 commit comments