Description:
The add -d command should not accept an invalid cost parameter. In this case, putting a prefix of 0 behind the cost would allow the command to still be executed. It is also not checked against the UI and the UI would display the price with the prefix of 0
Steps to Reproduce:
Enter the command add -d on/19-12-2022 08:00 s/2 pro/rice q/50 kg c/050.20
Expected Result:
The command should not be able to be executed because of the leading 0. Furthermore, even if the command works, the prefix 0 should not be displayed in the UI.
Actual Result:
The command executes successfully and is displayed in the UI.
Description:
The
add -d
command should not accept an invalidcost
parameter. In this case, putting a prefix of 0 behind the cost would allow the command to still be executed. It is also not checked against the UI and the UI would display the price with the prefix of 0Steps to Reproduce:
add -d on/19-12-2022 08:00 s/2 pro/rice q/50 kg c/050.20
Expected Result:
The command should not be able to be executed because of the leading 0. Furthermore, even if the command works, the prefix 0 should not be displayed in the UI.
Actual Result:
The command executes successfully and is displayed in the UI.