spec-assertion-thrown? improvements
Opened this issue · 0 comments
thumbnail commented
Problem statement
Currently no cljs option exists for this assert expression and the impl isn't bound by specs.
Task
- add
check!
aroundimpl.spec-assertion-thrown?
; note this issue in a previous attempt: #55 (comment) - A cljs equivalent.
- Expand
unit.nedap.utils.speced.spec-assertion
to also span remaining spec format (e.g.^{::speced/spec x}
)
Alternatives and comparison
- A pure-fn alternative which returns true/false and works within
is
- might be able to leverage
thrown?
- might be able to leverage
- An extension of cljs.test' assert-expr.
- tricky to implement; notice previous attempt; https://github.com/nedap/utils.spec/pull/55#issuecomment-498690116
- assert-expr expects an additional first argument over the clj-impl.
- most clean implementation