anchor.diff:  ;;              :clojure.spec/failure :test-failed}}
   ----
   
  -`test` has reported an error in the `:fn` spec. We can see the arguments passed were -3 and 0 and the return value was -5, which is out of the expected range.
  +`check` has reported an error in the `:fn` spec. We can see the arguments passed were -3 and 0 and the return value was -5, which is out of the expected range.
   
   To test all of the spec'ed functions in a namespace (or multiple namespaces), use http://clojure.github.io/clojure/branch-master/clojure.spec-api.html#clojure.spec.test/enumerate-namespace[`enumerate-namespace`] to generate the set of symbols naming vars in the namespace:
   
   [source,clojure]
   ----
  -(-> (stest/enumerate-namespace 'user) stest/test)
  -----
  -
  -And you can test all of spec'ed functions by calling `stest/test` without any arguments.
  +(-> (stest/enumerate-namespace 'user) stest/check)
  +----
  +
  +And you can check all of the spec'ed functions by calling `stest/check` without any arguments.
   
   == Wrapping Up
   
  
positive.code: 
  [source,clojure]
  ----
  (stest/abbrev-result (first (stest/test `ranged-rand)))
  ;;=> ({:spec (fspec
  ;;            :args (and (cat :start int? :end int?) (fn* [p1__3468#] (< (:start p1__3468#) (:end p1__3468#))))
  ;;            :ret int?
  
negative.code: 
  === Testing
  
  We mentioned earlier that `clojure.spec.test` provides tools for automatically testing functions. When functions have specs, we can use http://clojure.github.io/clojure/branch-master/clojure.spec-api.html#clojure.spec.test/check[`check`], to automatically generate tests that check the function using the specs.
  
  `check` will generate arguments based on the `:args` spec for a function, invoke the function, and check that the `:ret` and `:fn` specs were satisfied.
  
  [source,clojure]
  ----
  (require '[clojure.spec.test :as stest])
  
  (stest/check `ranged-rand)
  ;;=> ({:spec #object[clojure.spec$fspec_impl$reify__13728 0x4a47e374 "clojure.spec$fspec_impl$reify__13728@4a47e374"],
  ;;     :clojure.spec.test.check/ret {:result true, :num-tests 100, :seed 1466805740290},
  ;;     :sym spec.examples.guide/ranged-rand,
  