(self)
| 175 | assert results[0] == "/history clear" # Most recent first |
| 176 | |
| 177 | def test_max_entries(self): |
| 178 | history = InputHistory(max_entries=3) |
| 179 | for i in range(5): |
| 180 | history.add(f"entry-{i}") |
| 181 | assert history.size == 3 |
| 182 | assert history.entries[0] == "entry-2" |
| 183 | |
| 184 | def test_clear(self): |
| 185 | history = InputHistory() |
nothing calls this directly
no test coverage detected