fix must select
This commit is contained in:
parent
3602a08e5d
commit
03f6a12baa
2 changed files with 4 additions and 1 deletions
|
|
@ -284,7 +284,8 @@
|
||||||
must
|
must
|
||||||
[k]
|
[k]
|
||||||
(select* [this structure next-fn]
|
(select* [this structure next-fn]
|
||||||
(next-fn (get structure k)))
|
(if (contains? structure k)
|
||||||
|
(next-fn (get structure k))))
|
||||||
(transform* [this structure next-fn]
|
(transform* [this structure next-fn]
|
||||||
(if (contains? structure k)
|
(if (contains? structure k)
|
||||||
(assoc structure k (next-fn (get structure k)))
|
(assoc structure k (next-fn (get structure k)))
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,8 @@
|
||||||
(and (= (s/transform (s/must k1) op m)
|
(and (= (s/transform (s/must k1) op m)
|
||||||
(s/transform (s/keypath k1) op m))
|
(s/transform (s/keypath k1) op m))
|
||||||
(= (s/transform (s/must k2) op m) m)
|
(= (s/transform (s/must k2) op m) m)
|
||||||
|
(= (s/select (s/must k1) m) (s/select (s/keypath k1) m))
|
||||||
|
(empty? (s/select (s/must k2) m))
|
||||||
))))
|
))))
|
||||||
|
|
||||||
(defspec parser-test
|
(defspec parser-test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue