예제 #1
0
 def test_single_iterable(self):
   self.assertEqual(intersection([1, 2, 3]), [1, 2, 3])
예제 #2
0
 def test_single_iterable(self):
   self.assertEqual(functional.intersection([1, 2, 3]), [1, 2, 3])
예제 #3
0
 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
 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]), [])