[spec] Add original 'assert' form to explain-data for s/assert

Description

Using s/assert instead of assert has advantages: namely a specific reason why the data failed to meet the spec. But it also has disadvantages: the error message does not contain the assertion code the user wrote, so it's harder to see which assertion failed.

I believe we could have the best of both world if s/assert contained the original "assert" code - that way the error message could (optionally) print out this information.

Environment

org.clojure/spec.alpha "0.1.143"

Assignee

Unassigned

Reporter

Ben Brinckerhoff

Labels

Approval

Triaged

Patch

None

Affects versions

Priority

Major
Configure