Print export Unit tests are written

This commit is contained in:
Rithvik Sriram 2025-12-05 15:21:19 +01:00
commit 7d32799f13
2 changed files with 70 additions and 1 deletions

View file

@ -19,7 +19,7 @@ public class PrintExportService {
for(int i =0; i<recipe.getIngredients().size();i++){ // For loop adding ingredients one by one
result += recipe.getIngredients().get(i) + ", ";
}
result += "Steps:\n";
result += "\nSteps:\n";
for(int i =0; i<recipe.getPreparationSteps().size();i++){ // Preparation Steps separated by new lines
result += (i+1) + ": " + recipe.getPreparationSteps().get(i) + "\n";
}