Clojure

[spec] alt with an empty cat breaks explain

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: Release 1.9, Release 1.10
  • Fix Version/s: Release 1.11
  • Component/s: None
  • Labels:
  • Approval:
    Vetted

Description

(s/conform (s/alt :empty (s/cat)) [42]) ; => ::s/invalid
(s/explain (s/alt :empty (s/cat)) [42]) ; => prints 'Success!'

Related:
CLJ-2360 - looks like the same issue, but for s/and, s/or
CLJ-2336 - looks like a consequence of this issue
CLJ-2304 - probably related too

Activity

There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    jcr
Vote (0)
Watch (1)

Dates

  • Created:
    Updated: