MCPcopy Create free account
hub / github.com/bpython/bpython / test_back_word

Method test_back_word

bpython/test/test_manual_readline.py:118–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 self.assertEqual(expected, result)
117
118 def test_back_word(self):
119 line = "going to here from_here"
120 start_pos = 14
121 prev_word_pos = 9
122 self.assertEqual(line[start_pos], "f")
123 self.assertEqual(line[prev_word_pos], "h")
124 expected = (prev_word_pos, line)
125 result = back_word(start_pos, line)
126 self.assertEqual(expected, result)
127
128 def test_last_word_pos(self):
129 line = "a word"

Callers

nothing calls this directly

Calls 1

back_wordFunction · 0.90

Tested by

no test coverage detected