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

S update testing #99

Merged
merged 8 commits into from Oct 24, 2019
Merged

S update testing #99

merged 8 commits into from Oct 24, 2019

Conversation

liawsy
Copy link

@liawsy liawsy commented Oct 24, 2019

This resolves #65 and #86
Add maximum limit for quantity
Fix bug for parsing in delete command
Update DG for Replenish List
https://objective-bartik-a0ad8e.netlify.com/developerguide#proposed-replenish-list

@liawsy liawsy added this to the v1.3 milestone Oct 24, 2019
@@ -56,13 +57,16 @@ private Quantity(int quantity) throws ParseException {
}

public static boolean isValidQuantity(String test) {
return StringUtil.isNonNegativeInteger(test);
return StringUtil.isNonNegativeInteger(test) && Integer.parseInt(test) <= MAX_VALUE;

Choose a reason for hiding this comment

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

I actually added an isExceedingLimit method to the StringUtil class so you can use that

Copy link
Author

Choose a reason for hiding this comment

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

noted!

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.

Add relevant test cases for AddCommandTest
2 participants