コード例 #1
0
ファイル: test_mom_functional.py プロジェクト: RoboTeddy/mom
 def test_single_iterable(self):
   self.assertEqual(intersection([1, 2, 3]), [1, 2, 3])
コード例 #2
0
ファイル: test_mom_functional.py プロジェクト: rajeshvv/mom
 def test_single_iterable(self):
   self.assertEqual(functional.intersection([1, 2, 3]), [1, 2, 3])
コード例 #3
0
ファイル: test_mom_functional.py プロジェクト: RoboTeddy/mom
 def test_intersection(self):
   self.assertEqual(intersection([1, 2, 3]), [1, 2, 3])
   self.assertEqual(intersection([1, 2, 3, 0], [0, 2, 3]), [2, 3, 0])
   self.assertEqual(intersection([1, 5, 4], [0, 2, 3]), [])
コード例 #4
0
ファイル: test_mom_functional.py プロジェクト: rajeshvv/mom
 def test_intersection(self):
   self.assertEqual(functional.intersection([1, 2, 3]), [1, 2, 3])
   self.assertEqual(functional.intersection([1, 2, 3, 0], [0, 2, 3]), [2, 3, 0])
   self.assertEqual(functional.intersection([1, 5, 4], [0, 2, 3]), [])