()
| 465 | |
| 466 | |
| 467 | def test_wrap_4(): |
| 468 | text = Text("foo bar baz", justify="left") |
| 469 | lines = text.wrap(Console(), 4) |
| 470 | assert len(lines) == 3 |
| 471 | assert lines[0] == Text("foo ") |
| 472 | assert lines[1] == Text("bar ") |
| 473 | assert lines[2] == Text("baz ") |
| 474 | |
| 475 | |
| 476 | def test_wrap_wrapped_word_length_greater_than_available_width(): |