Skip to content

Fix sibling-step debug assert for a focus off the trie - #108

Merged
luketpeterson merged 2 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/prev-sibling-off-trie-assert
Sep 19, 2026
Merged

luketpeterson merged 2 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/prev-sibling-off-trie-assert

Conversation

@imlvts

@imlvts imlvts commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

With no sibling to move to, to_prev_sibling_byte restores the focus and returns None, then asserted path_exists(), which fails when the focus was never in the trie. Both sibling steps now assert the focus's existence is unchanged instead.

imlvts and others added 2 commits September 19, 2026 01:29
With no sibling to move to, to_prev_sibling_byte restores the focus and
returns None, then asserted path_exists(), which fails when the focus was
never in the trie. Both sibling steps now assert the focus's existence is
unchanged instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019R2H8fnco29asY2v3TPbtF
…ver-zealous debug_asserts. Lifting test up to macro.
@luketpeterson
luketpeterson force-pushed the fix/prev-sibling-off-trie-assert branch from 9dd8c76 to a3f2858 Compare September 19, 2026 07:31
@luketpeterson
luketpeterson merged commit 198ab72 into Adam-Vandervorst:master Sep 19, 2026
4 checks passed
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.

2 participants