コード例 #1
0
ファイル: Tests.py プロジェクト: thorebear/PythonHelpers
 def test_2(self):
     self.assertEqual(H.scan_inc(op.mul, 1, [2, 2, 2]), [2, 4, 8])
コード例 #2
0
ファイル: Tests.py プロジェクト: thorebear/PythonHelpers
 def test_3(self):
     self.assertEqual(H.scan_inc(op.mul, 1, []), [])
コード例 #3
0
ファイル: Tests.py プロジェクト: thorebear/PythonHelpers
 def test_1(self):
     self.assertEqual(H.scan_inc(op.add, 0, [1, 2, 3, 4]), [1, 3, 6, 10])