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