(self)
| 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) |
nothing calls this directly
no test coverage detected