cells tests: a tab's width decides where a line breaks
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 4m49s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 1m1s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 09:46:15 +01:00
commit 20b88c5332

View file

@ -86,6 +86,8 @@ fn tabs_stop_at_eight_from_the_start_of_the_line() {
assert_eq!(lines("aaaaaaaa bb\tc", 9), ["aaaaaaaa", "bb c"]);
// A tab is a space: it hangs at a soft break.
assert_eq!(lines("abcdef\tgh", 7), ["abcdef", "gh"]);
assert_eq!(lines("ab cd", 9), ["ab", "cd"]);
assert_eq!(lines("ab cd", 10), ["ab cd"]);
assert_eq!(leaf_measure("a b", true, None, Avail::MinContent).0, 1.0);
assert_eq!(leaf_measure("a b", false, None, Avail::MaxContent).0, 9.0);
}