def test_scanp_cons(): # pylint: disable=missing-docstring neutral = 0 slst = SList([1, 2, 3, 4]) res = slst.scanp(operator.add, neutral) exp = SList([9, 7, 4, 0]) assert res == exp
def test_scanp_nil(): # pylint: disable=missing-docstring neutral = 0 slst = SList() res = slst.scanp(operator.add, neutral) exp = SList([]) assert res == exp