Пример #1
0
def test_joins():
    lines = ["This is", "multiple", '"lines"', "of text."]
    assert humanreadable.combine_lines(lines) == 'This is multiple "lines" of text.'
Пример #2
0
def test_join_sentences():
    lines = ["This is one sentence.", "And this is another."]
    assert humanreadable.combine_lines(lines) == "This is one sentence. And this is another."
Пример #3
0
def test_join_whitespace():
    lines = ["      This text has lots of      ", "     junk whitespace.     "]
    assert humanreadable.combine_lines(lines) == "This text has lots of junk whitespace."