Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
143
def
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
149
def
test_markup_error():
Callers
nothing calls this directly
Calls
2
render
Function · 0.90
Span
Class · 0.90
Tested by
no test coverage detected