def test_2(self): self.assertEqual(H.scan_inc(op.mul, 1, [2, 2, 2]), [2, 4, 8])
def test_3(self): self.assertEqual(H.scan_inc(op.mul, 1, []), [])
def test_1(self): self.assertEqual(H.scan_inc(op.add, 0, [1, 2, 3, 4]), [1, 3, 6, 10])