()
| 564 | |
| 565 | |
| 566 | def test_wrap_long_words_2(): |
| 567 | # https://github.com/Textualize/rich/issues/2273 |
| 568 | text = Text("Hello, World...123") |
| 569 | lines = text.wrap(Console(), 10) |
| 570 | assert lines._lines == [ |
| 571 | Text("Hello, "), |
| 572 | Text("World...12"), |
| 573 | Text("3"), |
| 574 | ] |
| 575 | |
| 576 | |
| 577 | def test_wrap_long_words_followed_by_other_words(): |