cells tests: a tab's width decides where a line breaks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
952c302bfd
commit
20b88c5332
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue