MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_next

Method test_next

tests/test_input_processing.py:149–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

147 assert history.previous() == "first"
148
149 def test_next(self):
150 history = InputHistory()
151 history.add("first")
152 history.add("second")
153 history.previous() # second
154 history.previous() # first
155 assert history.next() == "second"
156
157 def test_next_past_end(self):
158 history = InputHistory()

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
previousMethod · 0.95
nextMethod · 0.95
InputHistoryClass · 0.90

Tested by

no test coverage detected