noprompt / meander

Tools for transparent data transformation
MIT License
921 stars 55 forks source link

m/find reggression? #127

Closed ribelo closed 4 years ago

ribelo commented 4 years ago
[[:single-match
  (m/find {:a 1 :b 2}
    (m/map-of !ks !vs) :work!)]
 [:single-match-with-catch-all
  (m/find {:a 1 :b 2}
    (m/map-of !ks !vs) :work!
    _ :error)]
 [:multiple-match
  (m/find {:a 1 :b 2}
    (m/pred integer?) :_
    (m/map-of (m/pred int?) (m/pred int?)) :_
    (m/map-of !ks !vs) :work!)]
 [:multiple-match-with-catch-all
  (m/find {:a 1 :b 2}
    (m/pred integer?) :_
    (m/map-of (m/pred int?) (m/pred int?)) :_
    (m/and ?m (m/map-of !ks !vs)) :work!
    _ :error)]];; => [[:single-match :work!]

meander/epsilon {:mvn/version "0.0.469"}

;;     [:single-match-with-catch-all :work!]
;;     [:multiple-match :work!]
;;     [:multiple-match-with-catch-all :error]]

meander/epsilon {:mvn/version "0.0.421"}

;;     [:single-match-with-catch-all :work!]
;;     [:multiple-match :work!]
;;     [:multiple-match-with-catch-all :work!]]`
noprompt commented 4 years ago

@ribelo This has been fixed and a new release is available.