MCPcopy
hub / github.com/SirVer/ultisnips / test_enter

Method test_enter

pythonx/UltiSnips/test_change_provider.py:243–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 self.assertEqual(cmds, [("I", 5, 3, "x")])
242
243 def test_enter(self):
244 # Enter at (5,3): splits line
245 event = (5, 3, 0, 0, 1, 0)
246 old_lines = ["hello"]
247 new_buf = [""] * 5 + ["hel", "lo"]
248 cmds = _on_bytes_to_edits(event, old_lines, new_buf, 5)
249 self.assertEqual(cmds, [("I", 5, 3, "\n")])
250
251 def test_backspace(self):
252 # Backspace at (5,3): deletes char at (5,2)

Callers

nothing calls this directly

Calls 1

_on_bytes_to_editsFunction · 0.90

Tested by

no test coverage detected