Exemplo n.º 1
0
 def test_repeating_validation(self):
     with self.assertRaises(ValueError):
         transduce(transducer=repeating(-1),
                   reducer=appending(),
                   iterable=[1, 3, 5])
Exemplo n.º 2
0
 def test_repeating_validation(self):
     with self.assertRaises(ValueError):
         transduce(transducer=repeating(-1),
                   reducer=appending(),
                   iterable=[1, 3, 5])
Exemplo n.º 3
0
 def test_repeating_zero(self):
     result = transduce(transducer=repeating(0),
                        reducer=appending(),
                        iterable=[1, 3, 5])
     self.assertListEqual(result, [])
Exemplo n.º 4
0
 def test_repeating_zero(self):
     result = transduce(transducer=repeating(0),
                        reducer=appending(),
                        iterable=[1, 3, 5])
     self.assertListEqual(result, [])