()
| 395 | |
| 396 | |
| 397 | def test_split_spans(): |
| 398 | text = Text.from_markup(class="st">"[red]Hello\n[b]World") |
| 399 | lines = text.split(class="st">"\n") |
| 400 | assert lines[0].plain == class="st">"Hello" |
| 401 | assert lines[1].plain == class="st">"World" |
| 402 | assert lines[0].spans == [Span(0, 5, class="st">"red")] |
| 403 | assert lines[1].spans == [Span(0, 5, class="st">"red"), Span(0, 5, class="st">"bold")] |
| 404 | |
| 405 | |
| 406 | def test_divide(): |
nothing calls this directly
no test coverage detected