()
| 536 | |
| 537 | |
| 538 | def test_wrap_overflow(): |
| 539 | text = Text("Some more words") |
| 540 | lines = text.wrap(Console(), 4, overflow="ellipsis") |
| 541 | assert (len(lines)) == 3 |
| 542 | assert lines[0] == Text("Some") |
| 543 | assert lines[1] == Text("more") |
| 544 | assert lines[2] == Text("wor…") |
| 545 | |
| 546 | |
| 547 | def test_wrap_overflow_long(): |