Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matches? helper for asserting facts in a =fn=> #9

Open
Pancia opened this issue Nov 18, 2016 · 2 comments
Open

matches? helper for asserting facts in a =fn=> #9

Pancia opened this issue Nov 18, 2016 · 2 comments

Comments

@Pancia
Copy link
Contributor

Pancia commented Nov 18, 2016

(some-response) =fn=> (matches? {:status 200, :body file?})

Creates a fn that takes a value and checks it against a spec,
values in the spec become like a =>, if it's a it's like a =fn=>, etc...

@Pancia
Copy link
Contributor Author

Pancia commented Apr 11, 2017

Maybe this is just a slightly improved version of clojure.spec/valid? with explain-(str|data) as the reporting when it fails.

@Pancia
Copy link
Contributor Author

Pancia commented Apr 12, 2017

How is this different from fdef & then instrument-ing?
Relatedly, make sure instrument errors report correctly.

Pancia pushed a commit that referenced this issue Apr 12, 2017
…ause

selectors was never initialized in the terminal reporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant