2020-01-07 08:33:37 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
|
|
export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {spartan.spec {:git/url "https://github.com/borkdude/spartan.spec" :sha "16f7eec4b6589c77c96c9fcf989f78fffcee7c4c"}}}' -Spath)
|
|
|
|
|
|
|
|
|
|
./bb -e "
|
2020-02-16 11:54:54 +00:00
|
|
|
(time (require '[spartan.spec :as s]))
|
|
|
|
|
(time (s/explain (s/cat :i int? :s string?) [1 :foo]))
|
|
|
|
|
(time (s/conform (s/cat :i int? :s string?) [1 \"foo\"]))
|
2020-01-07 08:33:37 +00:00
|
|
|
"
|