Wrong number of args (5) passed to: clojure.spec-alpha2/explain-data*

Description

When running a check that passed with spec.alha I get the below error message. I have attached complete file and project.clj showing versions etc.

The spec for the function looks like this:

(s/fdef calculate-report
:args ::report-args
:ret ::report)

(s/def ::report-args (s/cat :budget ::budget :transactions ::transactions))

(s/def ::report (s/keys :req-un [:report/budget-profit :report/net-profit :report/budget-profit]))

-> (stest/check `calculate-report)

({:failure #<clojure.lang.ArityException@44e116a4 clojure.lang.ArityException: Wrong number of args (5) passed to: clojure.spec-alpha2/explain-data*>,
:spec #<clojure.spec_alpha2.impl$fspec_impl$reify__1960@696df6c3>,
:sym pms.core/calculate-report,
:clojure.spec.test.check/ret {:fail [({:expenditure -2776.396827697754M, :income -250543325.78591156M} [])],
:failing-size 47,
:num-tests 48,
:result #<clojure.lang.ArityException@3548f99c clojure.lang.ArityException: Wrong number of args (5) passed to: clojure.spec-alpha2/explain-data*>,
:seed 1570185093037,
:shrunk {:depth 34,
:result #<clojure.lang.ArityException@44e116a4 clojure.lang.ArityException: Wrong number of args (5) passed to: clojure.spec-alpha2/explain-data*>,
:smallest [({:expenditure 1.0M, :income 1.0M} [])],
:total-nodes-visited 63}}})

Environment

Ubuntu
[org.clojure/clojure "1.10.0"]
[org.clojure/spec-alpha2 "0.2.177-SNAPSHOT"]

Status

Assignee

Unassigned

Reporter

Martin Clausen

Labels

Approval

None

Patch

None

Affects versions

Release 1.10

Priority

Major
Configure