()
| 552 | |
| 553 | |
| 554 | def test_wrap_long_words(): |
| 555 | text = Text("XX 12345678912") |
| 556 | lines = text.wrap(Console(), 4) |
| 557 | |
| 558 | assert lines._lines == [ |
| 559 | Text("XX "), |
| 560 | Text("1234"), |
| 561 | Text("5678"), |
| 562 | Text("912"), |
| 563 | ] |
| 564 | |
| 565 | |
| 566 | def test_wrap_long_words_2(): |