MCPcopy Index your code
hub / github.com/python/cpython / test_repeat_with_negative_times

Method test_repeat_with_negative_times

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

Source from the content-addressed store, hash-verified

1130 self.assertEqual(repr(r), 'repeat((1+0j), 0)')
1131
1132 def test_repeat_with_negative_times(self):
1133 self.assertEqual(repr(repeat('a', -1)), "repeat('a', 0)")
1134 self.assertEqual(repr(repeat('a', -2)), "repeat('a', 0)")
1135 self.assertEqual(repr(repeat('a', times=-1)), "repeat('a', 0)")
1136 self.assertEqual(repr(repeat('a', times=-2)), "repeat('a', 0)")
1137
1138 def test_map(self):
1139 self.assertEqual(list(map(operator.pow, range(3), range(1,7))),

Callers

nothing calls this directly

Calls 2

repeatFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected