def test_each_list(self):
        def eachTest(val, *args):
            self.eachList.append(val * 1)

        _([1, 2, 3, 4]).each(eachTest)
        self.assertEqual([2, 3, 4, 5], self.eachList,
                         "each for lists did not work for all")
        # test alias
        self.eachList = []
        _([1, 2, 3, 4]).forEach(eachTest)
        self.assertEqual([2, 3, 4, 5], self.eachList,
                         "forEach for lists did not work for all")
dataset/ETHPy150Open serkanyersen/underscore.py/tests/test_collections.py/TestCollections.test_each_list/operator `+` -> `*`