Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sheryew committed Nov 13, 2023
1 parent d9e2f24 commit 65541ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void execute_calculationExcessBudget_failure() {
@Test
public void execute_calculationExcessLongBudget_failure() {
long claimAmount = (long) (originalBudget + Math.pow(10, 12));
ClaimCommand claimCommand = new ClaimCommand(INDEX_FIRST_PERSON, isSubtract, claimAmount);
ClaimCommand claimCommand = new ClaimCommand(INDEX_FIRST_PERSON, !isSubtract, claimAmount);
assertThrows(CommandException.class, () -> {
claimCommand.calculateNewClaimBudget(originalBudget);
}, Messages.TOO_LARGE_A_NUMBER);
Expand Down

0 comments on commit 65541ba

Please sign in to comment.