[spec] When fspec fails due to return value, `:pred` is not a valid spec in problem

Description

Repro:

Expected: There should be some way to get the spec (i.e. the function itself, not a symbol) that fails for the return value. That way, we can recursively describe why the return value fails the spec.

Note that for a non-fspec failure, the function itself (not the symbol) is included in the explain-data:

Environment

org.clojure/spec.alpha "0.1.134"

Activity

Show:

Details

Assignee

Reporter

Labels

Priority

Affects versions

Created October 26, 2017 at 3:27 AM
Updated June 22, 2018 at 3:32 PM