Regex implemented (Linly brain went brr), Added more actions, RecipeCreation takes string as input now.
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -90,7 +90,7 @@ public class RecipeInstructions
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This creates an action + children
|
// This creates an action + children
|
||||||
public static void RecipeCreation()
|
public static void RecipeCreation(String instructionIn)
|
||||||
{
|
{
|
||||||
//New tree who dis
|
//New tree who dis
|
||||||
RecipeTree fullInstructions = new RecipeTree();
|
RecipeTree fullInstructions = new RecipeTree();
|
||||||
@@ -99,7 +99,8 @@ public class RecipeInstructions
|
|||||||
Scanner input = new Scanner(System.in);
|
Scanner input = new Scanner(System.in);
|
||||||
String userInput;
|
String userInput;
|
||||||
//Need to not hardcode verbs maybe a global variable for it? etc etc
|
//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
|
//init this shit
|
||||||
int currentNumber = 0;
|
int currentNumber = 0;
|
||||||
String currentIngredient = null;
|
String currentIngredient = null;
|
||||||
@@ -163,7 +164,7 @@ public class RecipeInstructions
|
|||||||
@Test
|
@Test
|
||||||
void testRecipeCreation()
|
void testRecipeCreation()
|
||||||
{
|
{
|
||||||
RecipeCreation();
|
RecipeCreation("disNotRealOnlyToAvoidErrorTrustDuud");
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
void testconstruct_children()
|
void testconstruct_children()
|
||||||
|
|||||||
Reference in New Issue
Block a user