()
| 517 | |
| 518 | |
| 519 | def test_wrap_long(): |
| 520 | text = Text("abracadabra", justify="left") |
| 521 | lines = text.wrap(Console(), 4) |
| 522 | assert len(lines) == 3 |
| 523 | assert lines[0] == Text("abra") |
| 524 | assert lines[1] == Text("cada") |
| 525 | assert lines[2] == Text("bra ") |
| 526 | |
| 527 | |
| 528 | def test_wrap_long_multi_codepoint(): |