MCPcopy
hub / github.com/Textualize/rich / test_split_and_crop_lines

Function test_split_and_crop_lines

tests/test_segment.py:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def test_split_and_crop_lines():
53 assert list(
54 Segment.split_and_crop_lines([Segment("Hello\nWorld!\n"), Segment("foo")], 4)
55 ) == [
56 [Segment("Hell"), Segment("\n", None)],
57 [Segment("Worl"), Segment("\n", None)],
58 [Segment("foo"), Segment(" ")],
59 ]
60
61
62def test_adjust_line_length():

Callers

nothing calls this directly

Calls 2

SegmentClass · 0.90
split_and_crop_linesMethod · 0.80

Tested by

no test coverage detected