Esempio n. 1
0
def test_joins():
    lines = ["This is", "multiple", '"lines"', "of text."]
    assert humanreadable.combine_lines(lines) == 'This is multiple "lines" of text.'
Esempio n. 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."
Esempio n. 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."