Ejemplo n.º 1
0
def prepare_data():
    anime = LinkedList()
    node1 = anime.append("BLEACH")
    node2 = anime.append("God of high school")
    node3 = anime.append("Deat note")
    test1 = anime.includes("BLEACH")
    test2 = anime.includes("Conan")
    return {
        'anime': anime,
        "node1": node1,
        "node2": node2,
        "node3": node3,
        "test1": test1,
        "test2": test2
    }
def test_find_value_exists():
    myList = LinkedList()
    myList.insert('great')
    actual = myList.includes('great')
    expected = True
    assert actual == expected