Exemple #1
0
 def test_one_iter(self):
     x = map(one_arg, range(100))
     self.assertEqual(x, list(range(100)))
Exemple #2
0
 def test_two_iters(self):
     x = map(two_args, range(100), range(100, 200))
     self.assertEqual(x, list(zip(range(100), range(100, 200))))
Exemple #3
0
 def test_no_args(self):
     x = map(no_args, [])
     self.assertEqual(x, [])