nedap/speced.def

spec-assertion-thrown? improvements

Opened this issue · 0 comments

Problem statement

Currently no cljs option exists for this assert expression and the impl isn't bound by specs.

Task

  • add check! around impl.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

  1. A pure-fn alternative which returns true/false and works within is
    • might be able to leverage thrown?
  2. An extension of cljs.test' assert-expr.