11 lines
382 B
Bash
Executable file
11 lines
382 B
Bash
Executable file
#!/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 "
|
|
(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\"]))
|
|
"
|