Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch max quantity tests #88

Conversation

Choo-Xing-Yu
Copy link

@Choo-Xing-Yu Choo-Xing-Yu commented Oct 6, 2020

Integrate max quantity into test cases.
Add new test cases to test max quantity

Fix typical items and related test cases.
Previously DUCK item had POULTRY tagged to it.

Fix bug where adding new item without max quantity tag will delete existing item max quantity tag

Update UG.
DG had nothing to be updated yet

Choo-Xing-Yu and others added 6 commits September 26, 2020 18:19
Fix when toAdd item does not have maxQuantity and exisitingItem does
it'll replace existingItem maxQuantity.
@saad-haider-pp saad-haider-pp added this to the v1.2 milestone Oct 6, 2020
Copy link

@saad-haider-pp saad-haider-pp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on tanking the test cases!

@@ -102,7 +102,7 @@ Format: `list`

Edits an existing item in the Inventory book.

Format: ` edit INDEX n/NAME q/QUANTITY s/SUPPLIER [t/TAG]…​`
Format: ` edit INDEX n/NAME q/QUANTITY s/SUPPLIER [max/MAX_QUANTITY] [t/TAG]…​`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all the arguments, except INDEX, should be optional here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! thanks for pointing it out!

|**Clear** | `clear` |
|**Delete** | `delete INDEX`<br> e.g., `delete 3` |
|**Edit** | ` edit INDEX n/NAME q/QUANTITY s/SUPPLIER [t/TAG]…​`<br> e.g.,`edit 1 n/Chicken q/50` |
|**Edit** | `edit INDEX n/NAME q/QUANTITY s/SUPPLIER [max/MAX_QUANTITY] [t/TAG]…​`<br> e.g.,`edit 1 n/Chicken q/50` |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise for here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same! Fixed

Copy link

@saad-haider-pp saad-haider-pp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saad-haider-pp saad-haider-pp merged commit a8ed3d3 into AY2021S1-CS2103T-T12-1:master Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants