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

Method test_last_word_pos

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

Source from the content-addressed store, hash-verified

126 self.assertEqual(expected, result)
127
128 def test_last_word_pos(self):
129 line = "a word"
130 expected = 2
131 result = last_word_pos(line)
132 self.assertEqual(expected, result)
133
134 def test_last_word_pos_single_word(self):
135 line = "word"

Callers

nothing calls this directly

Calls 1

last_word_posFunction · 0.90

Tested by

no test coverage detected