Allow CLI expressions with or without spaces (#23) #47
No reviewers
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type
documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
won't fix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/calculator!47
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/23-expression-without-spaces"
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?
Summary
Implements #23 so the CLI expression handler ignores whitespace.
Changes
Calculator::evaluatestrips whitespace, then parses a single binary operator (leading-still belongs to the left operand).Verification
cargo test— 19 passed (9 unit + 10 integration)cargo run -- clismoke:2+3,2 + 3,2 + 3,10-4,3*7,15/3→ expected results;5/0→ division by zeroNotes
Ticket: #23 (please do not auto-close; needs testing first).
Ready for human review/approval.