(self)
| 93 | # fmt: on |
| 94 | |
| 95 | def test_calc_screen_backspace(self): |
| 96 | events = itertools.chain( |
| 97 | code_to_events("aaa"), |
| 98 | [ |
| 99 | Event(evt="key", data="backspace", raw=bytearray(b"\x7f")), |
| 100 | ], |
| 101 | ) |
| 102 | reader, _ = handle_all_events(events) |
| 103 | self.assert_screen_equal(reader, "aa") |
| 104 | |
| 105 | def test_calc_screen_wrap_removes_after_backspace(self): |
| 106 | events = itertools.chain( |
nothing calls this directly
no test coverage detected