Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ns spec-test.core
- (:require [clojure.spec.alpha :as spec]
- [clojure.spec.test.alpha :as test]))
- (enable-console-print!)
- (defn foo [x]
- (inc x))
- (spec/fdef foo
- :args (spec/cat :x number?)
- :ret number?)
- (foo "hey")
- (test/instrument `foo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement