AY2021S1-CS2103T-T12-1 / tp

Other
0 stars 5 forks source link

[PE-D] Input constraint bug for q/ during "add-i" #212

Closed nus-pe-bot closed 4 years ago

nus-pe-bot commented 4 years ago

I personally feel that the input requirement for quantity during the "add-i" command should be an integer greater than 0.

As I try to execute a command add-i n/duck q/0 s/ntuc: Screenshot 2020-10-30 at 4.28.08 PM.png

The command runs as per normal, but I feel it is not what I expect from adding quantity. Hence this range should be restricted to greater than 0 instead of greater or equals to 0. Screenshot 2020-10-30 at 4.29.10 PM.png


Labels: severity.High type.FunctionalityBug original: tanzhuoyao-nus/ped#2