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