()
| 139 | |
| 140 | |
| 141 | def test_stylize(): |
| 142 | text = Text("Hello, World!") |
| 143 | text.stylize("bold", 7, 11) |
| 144 | assert text._spans == [Span(7, 11, "bold")] |
| 145 | text.stylize("bold", 20, 25) |
| 146 | assert text._spans == [Span(7, 11, "bold")] |
| 147 | |
| 148 | |
| 149 | def test_stylize_before(): |