MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_ziplongest

Method test_ziplongest

Lib/test/test_itertools.py:2256–2263  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2254 self.assertRaises(ZeroDivisionError, list, zip(E(s)))
2255
2256 def test_ziplongest(self):
2257 for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)):
2258 for g in (G, I, Ig, S, L, R):
2259 self.assertEqual(list(zip_longest(g(s))), list(zip(g(s))))
2260 self.assertEqual(list(zip_longest(g(s), g(s))), list(zip(g(s), g(s))))
2261 self.assertRaises(TypeError, zip_longest, X(s))
2262 self.assertRaises(TypeError, zip_longest, N(s))
2263 self.assertRaises(ZeroDivisionError, list, zip_longest(E(s)))
2264
2265 def test_map(self):
2266 for s in (range(10), range(0), range(100), (7,11), range(20,50,5)):

Callers

nothing calls this directly

Calls 7

listClass · 0.85
gFunction · 0.70
XClass · 0.70
NClass · 0.70
EClass · 0.70
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected