(self)
| 166 | assert history.previous() is None |
| 167 | |
| 168 | def test_search(self): |
| 169 | history = InputHistory() |
| 170 | history.add("/help") |
| 171 | history.add("hello world") |
| 172 | history.add("/history clear") |
| 173 | results = history.search("/h") |
| 174 | assert len(results) == 2 |
| 175 | assert results[0] == "/history clear" # Most recent first |
| 176 | |
| 177 | def test_max_entries(self): |
| 178 | history = InputHistory(max_entries=3) |
nothing calls this directly
no test coverage detected