mirror of
https://github.com/Textualize/rich.git
synced 2025-08-02 17:22:33 +00:00
clear method, optimizations, export links
This commit is contained in:
parent
51387ef150
commit
8e402e4911
9 changed files with 105 additions and 47 deletions
|
@ -19,6 +19,11 @@ def test_apply_style():
|
|||
]
|
||||
|
||||
|
||||
def test_split_lines():
|
||||
lines = [Segment("Hello\nWorld")]
|
||||
assert list(Segment.split_lines(lines)) == [[Segment("Hello")], [Segment("World")]]
|
||||
|
||||
|
||||
def test_split_and_crop_lines():
|
||||
assert list(
|
||||
Segment.split_and_crop_lines([Segment("Hello\nWorld!\n"), Segment("foo")], 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue