def test_not_split():
    split = not_split("Once upon a time there was a brave princess who")
    actual = split
    expected = [
        "Once", "upon", "a", "time", "there", "was", "a", "brave", "princess",
        "who"
    ]
    assert actual == expected
예제 #2
0
def test_seen_word_returns_repeated_word():
    x = "here is some some stuff"
    y = not_split(x)
    actual = seen_word(y)
    expected = "some"
    assert actual == expected
예제 #3
0
def test_not_split_creates_array_from_input():
    x = "here is some stuff"
    actual = not_split(x)
    expected = ["here", "is", "some", "stuff"]
    assert actual == expected
def test_seen_word():
    split = not_split('Once upon a time there was a brave princess who')
    actual = seen_word(split)
    expected = "a"
    assert actual == expected
def test_not_split_empty():
    actual = not_split("")
    expected = []
    assert actual == expected