Entering malformed expressions leads to accepted input
Bug #1295944 reported by
Victor Thompson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
Low
|
Bartosz Kosiorek |
Bug Description
Entering calculations such as "1+=", "1/=", 1*=", and 1-=" all evaluate to automatically add the same number after the operator such that the expression is "1+1=".
To reproduce:
1. Enter the following expression: "1+="
2. Note that the output is "2" as a result of adding 1 and 1
Expected results: The expression is not completed because it is malformed. Perhaps the previous operand, 1, was accidentally used again.
Related branches
lp:~gang65/ubuntu-calculator-app/ubuntu-calculator-fix1295944
- Mihir Soni: Approve
- Alan Pope 🍺🐧🐱 🦄 (community): Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Bartosz Kosiorek: Needs Information
- Victor Thompson (community): Approve
-
Diff: 29 lines (+3/-8)1 file modifiedformula.js (+3/-8)
Changed in ubuntu-calculator-app: | |
status: | New → Confirmed |
assignee: | nobody → Bartosz Kosiorek (gang65) |
Changed in ubuntu-calculator-app: | |
importance: | Undecided → Low |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi ,
Thanks for the bug, but it is expected behaviour of the calculator.
If you see any calculator and perform this expression it'll do with the previous operand.