-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use built-in instrument checking machinery instead of custom assertions #9
Conversation
@Frozenlock Curious on your thoughts on this approach instead. This would be a breaking change but certainly seems a lot simpler and more general moving forward. |
It looks simpler, but also introduces other dependencies. If I have to use |
No extra deps are necessary unless you want to check :ret. Orchestra is a very small library that has no deps itself. I don't think there's much friction to asking people to add it for :ret checks.
See note here |
Sure, but I do check I don't understand why all those breaking changes wouldn't be in a separate library. But at the same time I'm not the maintainer and if they can make things easier for you, you might as well do it. |
# Conflicts: # deps.edn # project.clj
@Frozenlock fyi, this is the direction I'd like to take. It was merged and deployed in 0.2.0. |
This library currently throws its own assertions when a functions args or ret does not pass the written spec. This PR switches to use the pre-built
clojure.spec.test.alpha/instrument
functionality. If Orchestra is on the classpath, the:ret
will also be checked.