Regex implemented (Linly brain went brr), Added more actions, RecipeCreation takes string as input now.

This commit is contained in:
2022-06-02 19:47:01 +02:00
parent bfb154873e
commit d7031bd563
2 changed files with 5 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ public class RecipeInstructions
}
// This creates an action + children
public static void RecipeCreation()
public static void RecipeCreation(String instructionIn)
{
//New tree who dis
RecipeTree fullInstructions = new RecipeTree();
@@ -99,7 +99,8 @@ public class RecipeInstructions
Scanner input = new Scanner(System.in);
String userInput;
//Need to not hardcode verbs maybe a global variable for it? etc etc
String[] verbs = {"add", "mix"};
String[] verbs = {"add", "mix", "stir", "wait", "bake", "heat", "sift", "boil", "melt", "fry", "cool",
"remove", "eat", "cut"};
//init this shit
int currentNumber = 0;
String currentIngredient = null;
@@ -163,7 +164,7 @@ public class RecipeInstructions
@Test
void testRecipeCreation()
{
RecipeCreation();
RecipeCreation("disNotRealOnlyToAvoidErrorTrustDuud");
}
@Test
void testconstruct_children()