 ;;            (ns-publics (40 'midje.checkers))
 ;; They have doc strings.
 ;; Here's one of them:
-(deftest example-of-in-any-order
-  (expect '[3 1 2] => (in-any-order [1 2 3]))  ;; succeeds
-  (expect '[3 3 1 2] => (in-any-order [1 2 3])))  ;; fails
+(deftest example-of-a-predefined-checker
+  (expect '[3 1 2] => (in-any-order [1 2 3]))                         ;; succeeds
+  (expect '[3 3 1 2] => (in-any-order [1 2 3]))                       (note-expected))
 ;;     FAIL at (core_test.clj:51)
 ;;     Actual result did not pass expected function.
 ;;     expected function: (in-any-order [1 2 3])

;; If I call (frozzle), I get this:
;;      Exception in thread "main" java.lang.Error: frozzle has no
;;      implementation. It's used in mock tests. (core_test.clj:1)

;; The following test fakes the first-fake so that it returns a
;; predefined value when it's called. After that, the result of
;; function-under-test is checked in the normal way. 
(deftest example-of-a-simple-fake
  (expect (function-under-test-1 3) => 5
      (fake (first-fake 3) => 5)))

;; Here's the failure when a fake is never called
(defn function-under-test-2 [_] 5)
(deftest example-of-a-simple-fake-failure
  (expect (function-under-test-2 3) => 5
      (fake (first-fake 3) => 5))                                      (note-expected))
;;     FAIL for (core_test.clj:80)
;;     This expectation was never satisfied:
;;     (first-fake 3) should be called at least once.
