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

Function test_render_close

tests/test_markup.py:137–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_render_close():
138 result = render("[bold]X[/]Y")
139 assert str(result) == "XY"
140 assert result.spans == [Span(0, 1, "bold")]
141
142
143def test_render_close_ambiguous():

Callers

nothing calls this directly

Calls 2

renderFunction · 0.90
SpanClass · 0.90

Tested by

no test coverage detected