[PR #484] [CLOSED] test(core): add regression tests for CJK line boundary and emoji handling #1350

Closed
opened 2026-03-14 09:31:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/484
Author: @GreyElaina
Created: 1/7/2026
Status: Closed

Base: mainHead: core-unicode-tests


📝 Commits (2)

  • 885e7af test(core): add regression tests for CJK line boundary and emoji handling
  • 88ed78d Merge branch 'main' into core-unicode-tests

📊 Changes

5 files changed (+260 additions, -0 deletions)

View changed files

📝 packages/core/src/renderables/Text.test.ts (+37 -0)
📝 packages/core/src/renderables/TextBufferRenderable.ts (+5 -0)
📝 packages/core/src/renderables/__tests__/Textarea.keybinding.test.ts (+46 -0)
📝 packages/core/src/text-buffer-view.test.ts (+95 -0)
📝 packages/core/src/zig/tests/text-buffer-drawing_test.zig (+77 -0)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/484 **Author:** [@GreyElaina](https://github.com/GreyElaina) **Created:** 1/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `core-unicode-tests` --- ### 📝 Commits (2) - [`885e7af`](https://github.com/anomalyco/opentui/commit/885e7af241070aaa7e968948e16ddfc7ad476501) test(core): add regression tests for CJK line boundary and emoji handling - [`88ed78d`](https://github.com/anomalyco/opentui/commit/88ed78d14596781a3da943302a22b1403aad3c00) Merge branch 'main' into core-unicode-tests ### 📊 Changes **5 files changed** (+260 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Text.test.ts` (+37 -0) 📝 `packages/core/src/renderables/TextBufferRenderable.ts` (+5 -0) 📝 `packages/core/src/renderables/__tests__/Textarea.keybinding.test.ts` (+46 -0) 📝 `packages/core/src/text-buffer-view.test.ts` (+95 -0) 📝 `packages/core/src/zig/tests/text-buffer-drawing_test.zig` (+77 -0) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:31:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1350
No description provided.