-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add 'tab' command #90
Add 'tab' command #90
Conversation
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
============================================
- Coverage 69.18% 69.04% -0.15%
- Complexity 458 470 +12
============================================
Files 83 85 +2
Lines 1548 1586 +38
Branches 143 145 +2
============================================
+ Hits 1071 1095 +24
- Misses 438 449 +11
- Partials 39 42 +3
Continue to review full report at Codecov.
|
Index index = ParserUtil.parseIndex(args); | ||
if (index.getOneBased() > TabCommand.NUM_OF_TABS) { | ||
throw new ParseException( | ||
String.format(MESSAGE_INVALID_COMMAND_FORMAT, TabCommand.MESSAGE_TAB_DOES_NOT_EXIST)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, inputting tab 5
will return the same error message as other invalid formats instead of MESSAGE_TAB_DOES_NOT_EXIST
.
This is in line with the EditCommand and DeleteCommand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changes:
tab
command.tab <1-based index of tab>
FinanceTrackerParserTest
.Resolves #89.