MCPcopy
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
324def 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
330def test_trim_spans():

Callers

nothing calls this directly

Calls 3

TextClass · 0.90
SpanClass · 0.90
joinMethod · 0.80

Tested by

no test coverage detected