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

Function test_render_combine

tests/test_markup.py:113–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111
112
113def test_render_combine():
114 result = render("[green]X[blue]Y[/blue]Z[/green]")
115 assert str(result) == "XYZ"
116 assert result.spans == [
117 Span(0, 3, "green"),
118 Span(1, 2, "blue"),
119 ]
120
121
122def test_render_overlap():

Callers

nothing calls this directly

Calls 2

renderFunction · 0.90
SpanClass · 0.90

Tested by

no test coverage detected