Skip to content

Commit

Permalink
Edit junit test for list_ingredients command in parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
NaychiMin committed Nov 12, 2023
1 parent 350d9ab commit bd50128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/seedu/cafectrl/parser/ParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void parseCommand_validListIngredientsCommand_successfulCommandParse() {
Sales sales = new Sales();
CurrentDate currentDate = new CurrentDate();

String userInput = "list_ingredients 1";
String userInput = "list_ingredients index/1";
ParserUtil parserUtil = new Parser();
Command result = parserUtil.parseCommand(menu, userInput, ui, pantry, sales, currentDate);

Expand Down Expand Up @@ -85,7 +85,7 @@ public void parseCommand_invalidListIngredientsIndex_returnsErrorMessage() {
Pantry pantry = new Pantry(ui);
Sales sales = new Sales();
CurrentDate currentDate = new CurrentDate();
String userInput = "list_ingredients a";
String userInput = "list_ingredients index/a";
ParserUtil parserUtil = new Parser();
Command result = parserUtil.parseCommand(menu, userInput, ui, pantry, sales, currentDate);

Expand All @@ -103,7 +103,7 @@ public void parseCommand_listIngredientIndexOutOfBounds_returnsErrorMessage() {
Pantry pantry = new Pantry(ui);
Sales sales = new Sales();
CurrentDate currentDate = new CurrentDate();
String userInput = "list_ingredients 1";
String userInput = "list_ingredients index/1";
ParserUtil parserUtil = new Parser();
Command result = parserUtil.parseCommand(menu, userInput, ui, pantry, sales, currentDate);

Expand Down

0 comments on commit bd50128

Please sign in to comment.