Difference between revisions of "Processing test"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
ingredients_text => "</nowiki> raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder" }, | ingredients_text => "</nowiki> raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder" }, | ||
− | + | [ { | |
− | + | 'id' => 'en:raw-milk', | |
− | + | 'text' => 'raw milk' | |
− | + | }, | |
− | + | The ingredients_text ''sliced tomatoes'', should result in the ingredient with id ''en:tomato'' and processing ''en:sliced''. | |
− | + | { | |
− | + | 'id' => 'en:tomato', | |
− | + | 'processing' => 'en:sliced', | |
− | + | 'text' => 'tomatoes' | |
− | + | }, | |
− | + | ||
− | + | { | |
− | + | 'id' => 'en:garlic-powder', | |
+ | 'text' => 'garlic powder' | ||
+ | }, | ||
+ | |||
{ | { | ||
'id' => 'en:aubergine', | 'id' => 'en:aubergine', | ||
Line 25: | Line 28: | ||
'text' => 'eggplant' | 'text' => 'eggplant' | ||
}, | }, | ||
+ | |||
{ | { | ||
− | 'id' => 'en:courgette', | + | 'id' => 'en:courgette', |
'processing' => 'en:powdered', | 'processing' => 'en:powdered', | ||
'text' => 'courgette' | 'text' => 'courgette' | ||
− | + | } | |
− | + | ] ] |
Revision as of 13:42, 22 March 2020
Template for processing adjectives tests:
[ {
Define the language for which the tests are applicable.
lc => "en",
Define in the ingredients_text the original ingredients that must be tested. These should have the format process ingredient, ingredient process, or whatever is applicable for that language.
ingredients_text => "</nowiki> raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder" },
[ { 'id' => 'en:raw-milk', 'text' => 'raw milk' },
The ingredients_text sliced tomatoes, should result in the ingredient with id en:tomato and processing en:sliced.
{ 'id' => 'en:tomato', 'processing' => 'en:sliced', 'text' => 'tomatoes' },
{ 'id' => 'en:garlic-powder', 'text' => 'garlic powder' },
{ 'id' => 'en:aubergine', 'processing' => 'en:powdered', 'text' => 'eggplant' },
{ 'id' => 'en:courgette', 'processing' => 'en:powdered', 'text' => 'courgette' } ] ]