

def test_reduce_right(self):
    res = _(['foo', 'bar', 'baz']).reduceRight((lambda sum, num, *args: (sum + self)))
    self.assertEqual('bazbarfoo', res, 'did not reducedRight correctly')
    res = _(['foo', 'bar', 'baz']).foldr((lambda sum, num, *args: (sum + num)))
    self.assertEqual('bazbarfoo', res, 'did not foldr correctly')

dataset/ETHPy150Open serkanyersen/underscore.py/tests/test_collections.py TestCollections.test_reduce_right/VarMisuse@37/47 `num`->`self`