Ejemplo n.º 1
0
def test_length_cons():
    # pylint: disable=missing-docstring
    slst = SList([1, 2, 3])
    exp = 3
    res = slst.length()
    assert res == exp
Ejemplo n.º 2
0
def test_length_nil():
    # pylint: disable=missing-docstring
    slst = SList()
    exp = 0
    res = slst.length()
    assert res == exp