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

Function test_render_overlap

tests/test_markup.py:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121
122def test_render_overlap():
123 result = render("[green]X[bold]Y[/green]Z[/bold]")
124 assert str(result) == "XYZ"
125 assert result.spans == [
126 Span(0, 2, "green"),
127 Span(1, 3, "bold"),
128 ]
129
130
131def test_adjoint():

Callers

nothing calls this directly

Calls 2

renderFunction · 0.90
SpanClass · 0.90

Tested by

no test coverage detected