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