Skip to content

Conversation

@GreyElaina
Copy link

Adds regression tests for CJK and emoji handling edge cases.

Tests Added

  • CJK character at line boundary tests (text-buffer-view)
  • CJK wrapping and streaming append tests (Text.test.ts)
  • Zig native test for streaming append with CJK
  • Textarea keybinding tests for ZWJ emoji, flags, skin tones

Additional

  • Add appendText() method to TextBufferRenderable for streaming use case

Copilot AI review requested due to automatic review settings January 7, 2026 02:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive regression tests for CJK (Chinese, Japanese, Korean) character handling at line boundaries and emoji handling edge cases, along with a new appendText() method for streaming append scenarios.

  • Adds tests ensuring CJK characters wrap correctly at line boundaries without overflow
  • Adds tests for complex emoji sequences (ZWJ, flags, skin tones) in textarea keybindings
  • Introduces appendText() method to TextBufferRenderable for streaming text append use cases

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/core/src/zig/tests/text-buffer-drawing_test.zig Removes cosmetic blank lines and adds Zig-level regression test for streaming append with CJK characters
packages/core/src/text-buffer-view.test.ts Adds comprehensive test suite for CJK character wrapping at line boundaries, including streaming append scenarios
packages/core/src/renderables/tests/Textarea.keybinding.test.ts Adds tests for complex emoji handling (ZWJ sequences, flags, skin tones) in textarea keybindings
packages/core/src/renderables/TextBufferRenderable.ts Adds public appendText() method that wraps textBuffer.append() with proper UI updates
packages/core/src/renderables/Text.test.ts Adds rendering tests for CJK text with wrapping and streaming append scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ling

- Add CJK character at line boundary tests (text-buffer-view.test.ts)
- Add CJK wrapping and streaming append tests (Text.test.ts)
- Add Zig native test for streaming append with CJK (text-buffer-drawing_test.zig)
- Add Textarea keybinding tests for ZWJ emoji, flags, skin tones
- Add appendText() method to TextBufferRenderable for streaming use case
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.

1 participant