nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Shows invalid command when the number of people sharing is high #1257

Open nus-se-script opened 3 months ago

nus-se-script commented 3 months ago

Steps to reproduce:

  1. type in "add shared bill a/123123 n/999999999999999999 d/testing shared bill23"
  2. output: "For input string: "999999999999999999" (Invalid command)"

image.png


[original: nus-cs2113-AY2324S2/pe-interim#1496] [original labels: severity.Low type.FunctionalityBug]

yyangdaa commented 3 months ago

Team's Response

Thank you for bringing to our attention to a potential bug. In the User Guide, it is stated that the command for adding a shared bill should be add shared bill a/AMOUNT n/NUMBER_OF_PEOPLE d/DESCRIPTION. However, the example shown in the screenshot omits the 'description' part of the command, which understandably leads to incorrect syntax and causing an 'invalid command' error.

Duplicate status (if any):

--