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

Method test_forward_word

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

Source from the content-addressed store, hash-verified

64 self.assertEqual(expected, result)
65
66 def test_forward_word(self):
67 line = "going from here to_here"
68 start_pos = 11
69 next_word_pos = 15
70 expected = (next_word_pos, line)
71 result = forward_word(start_pos, line)
72 self.assertEqual(expected, result)
73 start_pos = 15
74 next_word_pos = 23
75 expected = (next_word_pos, line)
76 result = forward_word(start_pos, line)
77 self.assertEqual(expected, result)
78
79 def test_forward_word_tabs(self):
80 line = "going from here to_here"

Callers

nothing calls this directly

Calls 1

forward_wordFunction · 0.90

Tested by

no test coverage detected