def test_reduce_right(self):
        res = _(["foo", "bar", "baz"]).reduceRight(
            lambda sum, num, *args: sum + num)
        self.assertEqual("bazbarfoo", res, "did not reducedRight correctly")
        # alias
        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/original