From fd255fd6ad9a3edf99fb0e5c9200db3e4948d0e7 Mon Sep 17 00:00:00 2001 From: Jakob Wenzel Date: Thu, 7 Jan 2021 19:07:49 +0100 Subject: [PATCH] added failing testcase for ingredient parser --- cookbook/tests/other/test_edits_recipe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/tests/other/test_edits_recipe.py b/cookbook/tests/other/test_edits_recipe.py index 25bc9245..0456eb6e 100644 --- a/cookbook/tests/other/test_edits_recipe.py +++ b/cookbook/tests/other/test_edits_recipe.py @@ -74,7 +74,8 @@ class TestEditsRecipe(TestBase): "ägg": (0, "", "ägg", ""), "50 g smör eller margarin": (50, "g", "smör eller margarin", ""), "3,5 l Wasser": (3.5, "l", "Wasser", ""), - "3.5 l Wasser": (3.5, "l", "Wasser", "") + "3.5 l Wasser": (3.5, "l", "Wasser", ""), + "400 g Karotte(n)": (400, "g", "Karotte(n)", "") } # for German you could say that if an ingredient does not have an amount and it starts with a lowercase letter, then that is a unit ("etwas", "evtl.") # does not apply to English tho