()
| 14 | |
| 15 | |
| 16 | def test_lines(): |
| 17 | t = """This problem is. |
| 18 | It is therefore |
| 19 | |
| 20 | |
| 21 | However,we |
| 22 | without introducing .. |
| 23 | However, I have |
| 24 | |
| 25 | |
| 26 | """ |
| 27 | assert len([p[1] for p in text.lines(t)]) == 5 |
| 28 | expected = [ |
| 29 | "This problem is.", |
| 30 | "It is therefore", |
| 31 | "However,we", |
| 32 | "without introducing ..", |
| 33 | "However, I have", |
| 34 | ] |
| 35 | assert [p for p in text.lines(t)] == expected |
| 36 | |
| 37 | |
| 38 | def test_foldcase(): |