reiddraper / simple-check

QuickCheck for Clojure
http://reiddraper.github.io/simple-check/
286 stars 18 forks source link

rose-filter assumes too much? #33

Closed gfredericks closed 10 years ago

gfredericks commented 10 years ago

rose-filter assumes that if a node doesn't pass the predicate, none of its children will.

reiddraper commented 10 years ago

I've tried to fix this a couple of times, but it's non-obvious to me what to do to exclude a node from the tree. Do you just replace the node with all of it's children, and then work recursively?

gfredericks commented 10 years ago

Could you promote the first child to the root and concat its children to the rest of the children?

reiddraper commented 10 years ago

Moved to Jira.