From 4188ef5d20c45cd84299c1ac372e6b5e1eea0d5c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 09:06:51 +0100 Subject: [PATCH] cells tests: a break before a dropped mark is kept Co-Authored-By: Claude Sonnet 5.5 --- crates/thing-core/tests/cells.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/thing-core/tests/cells.rs b/crates/thing-core/tests/cells.rs index 63be225..8e1da50 100644 --- a/crates/thing-core/tests/cells.rs +++ b/crates/thing-core/tests/cells.rs @@ -118,6 +118,8 @@ fn wrap_table() { assert_eq!(lines("", 5), [""]); assert_eq!(lines("a\n\nb", 5), ["a", "", "b"]); assert_eq!(lines("a\n", 5), ["a"]); + // A break opportunity that falls before a dropped mark (LRM here) is kept for the next cluster. + assert_eq!(lines("a \u{200e}bcd", 3), ["a", "bcd"]); // A cluster never splits, however narrow the room. assert_eq!(lines("\u{1f468}\u{200d}\u{1f469}", 1), ["\u{1f468}\u{200d}\u{1f469}"]); assert_eq!(lines("e\u{301}e\u{301}", 1), ["e\u{301}", "e\u{301}"]);