()
| 526 | |
| 527 | |
| 528 | def test_wrap_long_multi_codepoint(): |
| 529 | female_mechanic = "👩\u200d🔧" |
| 530 | text = Text(female_mechanic * 5, justify="left") |
| 531 | lines = text.wrap(Console(), 4) |
| 532 | assert len(lines) == 3 |
| 533 | assert lines[0] == Text(female_mechanic * 2) |
| 534 | assert lines[1] == Text(female_mechanic * 2) |
| 535 | assert lines[2] == Text(female_mechanic + " ") |
| 536 | |
| 537 | |
| 538 | def test_wrap_overflow(): |