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

add Budget class, budget and showbudget command #70

Conversation

austinsantoso
Copy link

add budget class, with save and load functionalities. added budget and showbudget commands

private Model model = new ModelManager(getTypicalAddressBook(), new UserPrefs());

@Test
void execute_setNewBudget_success() {

Choose a reason for hiding this comment

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

public void --> to remain consistent with other tests and for code quality check

private Model model = new ModelManager(getTypicalAddressBook(), new UserPrefs());

@Test
void execute_displayBudget_success() {

Choose a reason for hiding this comment

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

public void --> to remain consistent with other tests and for code quality check

*/
public class Budget {

public static final String MESSAGE_CONSTRAINTS = "Budget values should be positive number";
Copy link

@choongyx choongyx Oct 17, 2019

Choose a reason for hiding this comment

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

Are we allowing 2dp for budget (like Cost) or budget can use Cost too?

@choongyx
Copy link

#30

add budget class, with save and load functionalities. added budget and show budget commands
budget code quality
import seedu.address.model.Model;

/**
* Displays the current SPending

Choose a reason for hiding this comment

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

Budget


@Test
public void parse_invalidArgs_throwsParseException() {
assertParseFailure(parser, "", String.format(MESSAGE_INVALID_COMMAND_FORMAT,

Choose a reason for hiding this comment

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

add a negative value argument for test case

add test cases for budget
@Nanosync Nanosync merged commit 8a7b783 into AY1920S1-CS2103T-F13-3:master Oct 17, 2019
@choongyx choongyx added this to the v1.2 milestone Oct 17, 2019
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

3 participants