File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 617
617
(explain* [_ path via in x]
618
618
(cond
619
619
(not (vector? x))
620
- [{:path path :pred ' vector? :val x :via via :in in}]
620
+ [{:path path :pred ` vector? :val x :via via :in in}]
621
621
622
622
(not= (count x) (count preds))
623
623
[{:path path :pred `(= (count ~'%) ~(count preds)) :val x :via via :in in}]
Original file line number Diff line number Diff line change 358
358
(map (comp vec sort keys first))
359
359
(into #{})))))
360
360
361
+ (deftest tuple-explain-pred
362
+ (are [val expected]
363
+ (= expected (-> (s/explain-data (s/tuple int?) val) ::s/problems first :pred ))
364
+ :a 'cljs.core/vector?
365
+ [] '(cljs.core/= (cljs.core/count %) 1 )))
366
+
361
367
(s/fdef foo.bar/cljs-2275
362
368
:args (s/cat :k keyword?)
363
369
:ret string?)
You can’t perform that action at this time.
0 commit comments