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

Function test_render_close_ambiguous

tests/test_markup.py:143–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142
143def test_render_close_ambiguous():
144 result = render("[green]X[bold]Y[/]Z[/]")
145 assert str(result) == "XYZ"
146 assert result.spans == [Span(0, 3, "green"), Span(1, 2, "bold")]
147
148
149def test_markup_error():

Callers

nothing calls this directly

Calls 2

renderFunction · 0.90
SpanClass · 0.90

Tested by

no test coverage detected