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

Function test_right_crop

tests/test_text.py:449–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447
448
449def test_right_crop():
450 text = Text()
451 text.append("foobar", "red")
452 text.right_crop(3)
453 assert str(text) == "foo"
454 assert text._spans == [Span(0, 3, "red")]
455
456
457def test_wrap_3():

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
right_cropMethod · 0.95
TextClass · 0.90
SpanClass · 0.90

Tested by

no test coverage detected