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

Method test_get

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

Source from the content-addressed store, hash-verified

43 self.assertEqual(index(dex), '3.0')
44
45 def test_get(self):
46 get = self.text.get
47 Equal = self.assertEqual
48 self.text.insert('1.0', self.hw)
49
50 Equal(get('end'), '')
51 Equal(get('end', 'end'), '')
52 Equal(get('1.0'), 'h')
53 Equal(get('1.0', '1.1'), 'h')
54 Equal(get('1.0', '1.3'), 'hel')
55 Equal(get('1.1', '1.3'), 'el')
56 Equal(get('1.0', '1.0 lineend'), 'hello')
57 Equal(get('1.0', '1.10'), 'hello')
58 Equal(get('1.0 lineend'), '\n')
59 Equal(get('1.1', '2.3'), 'ello\nwor')
60 Equal(get('1.0', '2.5'), self.hw)
61 Equal(get('1.0', 'end'), self.hwn)
62 Equal(get('0.0', '5.0'), self.hwn)
63
64 def test_insert(self):
65 insert = self.text.insert

Callers

nothing calls this directly

Calls 2

getFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected