Up doesn't preserve "has changed" #24

frankshearar opened this Issue Feb 25, 2012 · 0 comments

1 participant


While rooting after a mutation works just fine - by directing rooting through a has-changed mechanism - simply using up throws away the fact that something's changed.

For instance, this fails

[[1]].zipper.down.down.replace(2).up.root.should == [[2]]

even though

    [[1]].zipper.down.down.replace(2).root.should == [[2]]
            # Note the lack of up ---^
@frankshearar frankshearar added a commit that referenced this issue Feb 25, 2012
@frankshearar Fix issue #24: navigating up (as one would during a map on a preorder…
… traversal of a tree of sufficient depth) would forget that mutations had occurred.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment