Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonwidjaja committed Nov 13, 2023
1 parent 4460409 commit cd56924
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import org.junit.jupiter.api.Test;

import seedu.address.logic.Messages;
import seedu.address.logic.commands.ClaimCommand;

public class ClaimCommandParserTest {
Expand All @@ -35,6 +36,12 @@ public void parse_withEmptyIndex_returnsFailure() {
assertParseFailure(parser, userInput, CLAIM_EMPTY_INDEX);
}

@Test
public void parse_claimTooLarge_returnsFailure() {
String userInput = "1 $/+100000000000000000000000000000000";
assertParseFailure(parser, userInput, Messages.TOO_LARGE_A_NUMBER);
}

@Test
public void parse_withEmptyAmount_returnsFailure() {
String userInput = String.valueOf(INDEX_FIRST_PERSON.getOneBased());
Expand Down

0 comments on commit cd56924

Please sign in to comment.