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

Logic: increase command to accept parameters #63

Merged
merged 6 commits into from
Mar 16, 2019

Conversation

Jackimaru96
Copy link

  • Application can now accept increase command with parameters (Amount)
  • Tests are updated
  • AddressBookParserTest arranged in lexicographical order

- Changed IncreaseCommand to accept parameter AMOUNT
- Added IncreaseCommandParser to parse `increase` command with parameter
- Changed AddressBookParser to accept IncreaseCommandParser
- Changed IncreaseCommandTest for equals method
- Changed AddressBookParserTest to test for IncreaseCommand
- Reordered tests in AddressBookParserTest lexicographically
- Refactored addCommand to spendCommand
@Jackimaru96 Jackimaru96 added type.Enhancement An enhancement to an existing story needsReview labels Mar 15, 2019
@Jackimaru96 Jackimaru96 added this to the Milestone v1.2 milestone Mar 15, 2019
@Jackimaru96 Jackimaru96 added this to In progress in Milestone v1.2 via automation Mar 15, 2019
@kjiaxuan
Copy link

We should take note of cases when the user does not enter the amount up to 2dp in future.
Will add the alias for this command too next time

Milestone v1.2 automation moved this from In progress to Reviewer approved Mar 15, 2019
Copy link

@eugeneyl eugeneyl left a comment

Choose a reason for hiding this comment

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

Can update the regex of class amount to restrict entry to 2 only numbers with 2 decimal place.
Reference for future edits

@Jackimaru96 Jackimaru96 merged commit 25fe769 into CS2103-AY1819S2-W17-3:master Mar 16, 2019
Milestone v1.2 automation moved this from Reviewer approved to Done Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.Completed type.Enhancement An enhancement to an existing story
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants