test(list): add comprehensive multi-byte character backspace tests#109
Merged
YousefHadder merged 1 commit intomainfrom Nov 5, 2025
Merged
test(list): add comprehensive multi-byte character backspace tests#109YousefHadder merged 1 commit intomainfrom
YousefHadder merged 1 commit intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive test coverage for multi-byte UTF-8 character handling in the handle_backspace function. The tests ensure that backspace correctly deletes multi-byte characters (CJK characters, emojis, accented characters) in various contexts.
- Adds 14 new test cases covering multi-byte character deletion in lists and non-list lines
- Tests various multi-byte UTF-8 characters (2-byte, 3-byte, and 4-byte sequences)
- Verifies correct cursor positioning after deletion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds comprehensive test coverage for multi-byte Unicode character deletion in the backspace handler, addressing the missing tests identified in PR #107 review.
Type of Change
Test Coverage Added
This PR adds 11 new test cases covering:
。)🎉)é)All tests verify correct behavior in both list and non-list contexts.
Testing
Related Issues
Addresses test coverage gap identified in PR #107 code review.