コード例 #1
0
ファイル: test_mom_functional.py プロジェクト: RoboTeddy/mom
 def test_valid_index(self):
   self.assertEqual(find(lambda w: w > 2, [0, 1, 2, 3, 4, 5]), 3)
コード例 #2
0
ファイル: test_mom_functional.py プロジェクト: rajeshvv/mom
 def test_not_found(self):
   self.assertEqual(functional.find(lambda w: w > 50, range(5)), -1)
コード例 #3
0
ファイル: test_mom_functional.py プロジェクト: RoboTeddy/mom
 def test_not_found(self):
   self.assertEqual(find(lambda w: w > 50, range(5)), -1)
コード例 #4
0
ファイル: test_mom_functional.py プロジェクト: rajeshvv/mom
 def test_valid_index(self):
   self.assertEqual(functional.find(lambda w: w > 2, [0, 1, 2, 3, 4, 5]), 3)