Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_join
Function
test_join
tests/test_text.py:324–327 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
322
323
324
def
test_join():
325
text = Text(
"bar"
).join([Text(
"foo"
,
"red"
), Text(
"baz"
,
"blue"
)])
326
assert str(text) ==
"foobarbaz"
327
assert text._spans == [Span(0, 3,
"red"
), Span(6, 9,
"blue"
)]
328
329
330
def
test_trim_spans():
Callers
nothing calls this directly
Calls
3
Text
Class · 0.90
Span
Class · 0.90
join
Method · 0.80
Tested by
no test coverage detected