예제 #1
0
 def test_map_non_empty_list(self):
     self.assertEqual(list_ops_map(lambda x: x + 1, [1, 3, 5, 7]),
                      [2, 4, 6, 8])
예제 #2
0
 def test_map_empty_list(self):
     self.assertEqual(list_ops_map(lambda x: x + 1, []), [])