(self)
| 2193 | self.assertRaises(ZeroDivisionError, list, chain(E(s))) |
| 2194 | |
| 2195 | def test_compress(self): |
| 2196 | for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)): |
| 2197 | n = len(s) |
| 2198 | for g in (G, I, Ig, S, L, R): |
| 2199 | self.assertEqual(list(compress(g(s), repeat(1))), list(g(s))) |
| 2200 | self.assertRaises(TypeError, compress, X(s), repeat(1)) |
| 2201 | self.assertRaises(TypeError, compress, N(s), repeat(1)) |
| 2202 | self.assertRaises(ZeroDivisionError, list, compress(E(s), repeat(1))) |
| 2203 | |
| 2204 | def test_product(self): |
| 2205 | for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)): |
nothing calls this directly
no test coverage detected