From a4d1ffe363d3cca8b23daa9ad6af86e41554c2f1 Mon Sep 17 00:00:00 2001 From: squeakyboots Date: Tue, 28 Sep 2021 21:24:06 -0600 Subject: [PATCH] Minor code example fixes The example code for instruction 3 has a tuple as input but per the test cases and pre-fab docstring it should take a "str, list" (as opposed to "tuple(str, list)"). In short there are extra parenthesis. In instruction 4 the second code example returns `{'blue cheese', 'pinenuts', 'pork tenderloin'}` but with the current data in sets_categories_data.py should return `{'pork tenderloin', 'blue cheese', 'pine nuts', 'onions'}` after correcting the missing space in pine nuts in the input. I'm guessing onions were maybe added later and pine nuts was spaced after the instruction was written. --- exercises/concept/cater-waiter/.docs/instructions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/concept/cater-waiter/.docs/instructions.md b/exercises/concept/cater-waiter/.docs/instructions.md index de769d77488..58add81c4a9 100644 --- a/exercises/concept/cater-waiter/.docs/instructions.md +++ b/exercises/concept/cater-waiter/.docs/instructions.md @@ -50,11 +50,11 @@ All dishes will "fit" into one of the categories imported from `categories.py` ( >>> from categories import VEGAN, VEGETARIAN, PALEO, KETO, OMNIVORE ->>> categorize_dish(('Sticky Lemon Tofu', ['tofu', 'soy sauce', 'salt', 'black pepper', 'cornstarch', 'vegetable oil', 'garlic', 'ginger', 'water', 'vegetable stock', 'lemon juice', 'lemon zest', 'sugar'])) +>>> categorize_dish('Sticky Lemon Tofu', ['tofu', 'soy sauce', 'salt', 'black pepper', 'cornstarch', 'vegetable oil', 'garlic', 'ginger', 'water', 'vegetable stock', 'lemon juice', 'lemon zest', 'sugar']) ... 'Sticky Lemon Tofu: VEGAN' ->>> categorize_dish(('Shrimp Bacon and Crispy Chickpea Tacos with Salsa de Guacamole', ['shrimp', 'bacon', 'avocado', 'chickpeas', 'fresh tortillas', 'sea salt', 'guajillo chile', 'slivered almonds', 'olive oil', 'butter', 'black pepper', 'garlic', 'onion'])) +>>> categorize_dish('Shrimp Bacon and Crispy Chickpea Tacos with Salsa de Guacamole', ['shrimp', 'bacon', 'avocado', 'chickpeas', 'fresh tortillas', 'sea salt', 'guajillo chile', 'slivered almonds', 'olive oil', 'butter', 'black pepper', 'garlic', 'onion']) ... 'Shrimp Bacon and Crispy Chickpea Tacos with Salsa de Guacamole: OMNIVORE' ``` @@ -76,9 +76,9 @@ Dish ingredients inside a `list` may or may not have duplicates. ... ('Ginger Glazed Tofu Cutlets', {'garlic','soy sauce','tofu'}) ->>> tag_special_ingredients(('Arugula and Roasted Pork Salad', ['pork tenderloin', 'arugula', 'pears', 'blue cheese', 'pinenuts', 'balsamic vinegar', 'onions', 'black pepper'])) +>>> tag_special_ingredients(('Arugula and Roasted Pork Salad', ['pork tenderloin', 'arugula', 'pears', 'blue cheese', 'pine nuts', 'balsamic vinegar', 'onions', 'black pepper'])) ... -('Arugula and Roasted Pork Salad', {'blue cheese', 'pinenuts', 'pork tenderloin'}) +('Arugula and Roasted Pork Salad', {'pork tenderloin', 'blue cheese', 'pine nuts', 'onions'}) ``` ## 5. Compile a "Master List" of Ingredients