(self)
| 155 | assert history.next() == "second" |
| 156 | |
| 157 | def test_next_past_end(self): |
| 158 | history = InputHistory() |
| 159 | history.add("first") |
| 160 | # cursor at end |
| 161 | result = history.next() |
| 162 | assert result == "" # Empty when past end |
| 163 | |
| 164 | def test_previous_empty(self): |
| 165 | history = InputHistory() |
nothing calls this directly
no test coverage detected