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