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

Method test_index_empty

Lib/idlelib/idle_test/test_text.py:22–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 self.assertEqual(self.text.get('end'), '')
21
22 def test_index_empty(self):
23 index = self.text.index
24
25 for dex in (-1.0, 0.3, '1.-1', '1.0', '1.0 lineend', '1.end', '1.33',
26 'insert'):
27 self.assertEqual(index(dex), '1.0')
28
29 for dex in 'end', 2.0, '2.1', '33.44':
30 self.assertEqual(index(dex), '2.0')
31
32 def test_index_data(self):
33 index = self.text.index

Callers

nothing calls this directly

Calls 2

indexFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected