Skip to content

Commit 0b9bc94

Browse files
committed
Invert test result. We expect a report failure
1 parent 4bac913 commit 0b9bc94

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎test/com/gfredericks/test/chuck/clojure_test_test.cljc‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,10 @@
2828
;; sticking a failing assertion in between two
2929
;; passing ones
3030
(is (zero? x))
31-
(is (= x x)))]
32-
(is (not (:result (quick-check 20 failing-prop))))))
31+
(is (= x x)))
32+
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

Comments
 (0)