cells tests: tab measure expectations
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3503b1b443
commit
952c302bfd
1 changed files with 2 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue