rizemon/pe

Entering empty description causes amount to be recognized as both amount and description for `add_ex`

Opened this issue · 1 comments

image.png

Input: add_ex d/ a/456 c/food

The documentation mentioned that description must be non-empty, however specifying an empty description causes the a/ flag and its value to be recognized as both the amount and description.

image.png

Team's Response

No details provided by team.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

When description is left empty. 'a/0.05' is wrongly made description.

image.png
When description is left empty. 'a/0.05' is wrongly made description without any error message that description was left blank. Could end up with a user not knowing that their entry was invalid.


[original: nus-cs2113-AY2122S1/pe-interim#1004] [original labels: severity.Medium type.FunctionalityBug]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

Good catch!

Items for the Tester to Verify

❓ Issue duplicate status

Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)

  • I disagree

Reason for disagreement: [replace this with your explanation]