AS a user, I want to be able to cycle the current session's history #24
Labels
No labels
blocked
duplicate
needs
approval
needs
criteria
needs
estimate
needs
tests
question
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
won't fix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
RabbitLabs/calculator#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: #21
Story Points: 8
SO THAT I can edit a previous calculation
Acceptance Criteria
GIVEN I am in the CLI mode
WHEN I press the Up arrow key
THEN the current input will cycle backward through the history of the current session
GIVEN I am on the CLI mode
WHEN I press the Down arrow key
THEN the current input will cycle forward through the history of the current session
Subtasks
Pressing up key should cycle historyto AS a user, I want to be able to cycle the current session's historyTest Plan
Generated test plan for #24. Fill in Actual Results and Notes during testing.
Test Plan: #24 — AS a user, I want to be able to cycle the current session's history
Issue: #24
Generated: 2026-06-29
Milestone: 0.1.0
Summary
Verify that interactive CLI mode maintains a per-session input history and lets the user recall prior expressions with the Up and Down arrow keys to edit and re-run previous calculations.
Test Cases
calculator cli). Enter and submit2 + 3, then10 - 4. At a new prompt, press Up once10 - 42 + 310 - 41 + 1,2 + 2,3 + 3. Press Up repeatedly until history stops changing3 + 3, then2 + 2, then1 + 1in order2 + 2, then3 + 3, then empty/latest position5 * 2. Press Up to recall5 * 2, change it to5 * 3, and submit= 154 + 4. Press Up to recall it, then press Enter without editing= 8again7 - 1. Typequitand exit. Start a new interactive session and press Up at the prompt2 + 3, press Enter on an empty line twice, then submit4 + 5. Press Up once4 + 5, not a blank line2 +, then submit a valid expression3 + 3. Press Up once3 + 32 + 3, then typequitand exit. Start a new session, submit one expression, and press Upcalculator cli "2 + 3"(single-expression mode, non-interactive)