Пример #1
0
 def test_filter_non_empty_list(self):
     self.assertEqual(list_ops_filter(lambda x: x % 2 == 1, [1, 2, 3, 5]),
                      [1, 3, 5])
Пример #2
0
 def test_filter_empty_list(self):
     self.assertEqual(list_ops_filter(lambda x: x % 2 == 1, []), [])