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

Method test_longexp

Lib/test/test_longexp.py:4–7  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2
3class LongExpText(unittest.TestCase):
4 def test_longexp(self):
5 REPS = 65580
6 l = eval("[" + "2," * REPS + "]")
7 self.assertEqual(len(l), REPS)
8
9if __name__ == "__main__":
10 unittest.main()

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
evalFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected