cells tests: tab measure expectations

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

View file

@ -86,7 +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!(leaf_measure("a\tb", true, None, Avail::MinContent).0, 9.0);
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);
}
#[test]