Skip to content

Commit 84d8456

Browse files
committed
TODO test a recursive lazy schema
1 parent 5b1e0cc commit 84d8456

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/malli/core.cljc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,8 @@
21142114
(fn [x]
21152115
(if-let [f @vol]
21162116
(do (println "LAZY: TIED THE KNOT")
2117+
;;TODO exercise code path
2118+
(throw (ex-info "LAZY: TIED THE KNOT" {}))
21172119
(f x))
21182120
(let [f (binding [*ref-validators* (assoc ref-validators id vol)]
21192121
(-validator (rf)))]

0 commit comments

Comments
 (0)