示例#1
0
def test_split_string_on_punctuation():
    input_string = 'hi, how are you doing? blabla'
    expected = ['hi', 'how are you doing', 'blabla']
    assert split_string_on_punctuation(input_string) == expected
    input_string = ';String. with. punctuation characters!'
    expected = ['String', 'with', 'punctuation characters']
    assert split_string_on_punctuation(input_string) == expected
示例#2
0
def test_split_string_on_punctuation():
    input_string = "hi, how are you doing? blabla"
    expected = ["hi", "how are you doing", "blabla"]
    assert split_string_on_punctuation(input_string) == expected
    input_string = ";String. with. punctuation characters!"
    expected = ["String", "with", "punctuation characters"]
    assert split_string_on_punctuation(input_string) == expected