We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It'd be cool to be able to do pattern matching with https://github.com/HealthSamurai/matcho instead of just comparing for literal equality.
The two main use cases I have in mind are partial matches and predicates:
(comment ; The return value is a map containing {:foo :bar} (let [big-map (apply assoc {} (repeatedly 10 rand))] (assoc big-map :foo :bar)) ;=> {:foo :bar ...} (require 'clojure.spec.alpha :as s) (let [http-response-body (slurp "http://example.com")] {:status 200 :body http-response-body :headers {"foo" "bar"}}) ;=> {:status 200 ; :body string? ; :headers (s/map-of string? string?)} )
The text was updated successfully, but these errors were encountered:
Add matcho support for expectation strings leading with ;=>> (#2)
;=>>
8f31ff4
;=> {:foo :bar ...}
For the record, as implemented, matcho assertions must follow =>> instead of the original =>, which remains an assertion of literal equality.
=>>
=>
Sorry, something went wrong.
No branches or pull requests
It'd be cool to be able to do pattern matching with https://github.com/HealthSamurai/matcho instead of just comparing for literal equality.
The two main use cases I have in mind are partial matches and predicates:
The text was updated successfully, but these errors were encountered: