Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix barf-forward for position tracking zipper #249

Merged
merged 1 commit into from
Dec 2, 2023
Merged

Conversation

lread
Copy link
Collaborator

@lread lread commented Dec 2, 2023

rewrite-clj.paredit/barf-forward on zipper created with :track-position? true now correctly barfs when current node has children.

Bug was in internal rewrite-clj.custom-zipper.utils/remove-and-move-up whose only user is barf-forward.
When adding/verifying tests, converted from test/are to doseq.

Fleshed out existing paredit API tests to also test against :track-position true? zipper.

Fixes #245

`rewrite-clj.paredit/barf-forward` on zipper created with
`:track-position? true` now correctly barfs when current node has children.

Bug was in internal `rewrite-clj.custom-zipper.utils/remove-and-move-up`
whose only user is `barf-forward`.
When adding/verifying tests, converted from `test/are` to `doseq`.

Fleshed out existing paredit API tests to also test against
`:track-position true?` zipper.

Fixes #245
@lread lread merged commit c47485b into main Dec 2, 2023
75 checks passed
@lread lread deleted the lread-tracking-paredit branch April 25, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

barf-forward unexpected behavior
1 participant