Difference between revisions of "Processing test"

From Open Food Facts wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
<nowiki>[</nowiki>
 
<nowiki>[</nowiki>
<nowiki>{ lc => "en", ingredients_text => "</nowiki>raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder"},  
+
Define the language for which the tests are applicable.
 +
<nowiki>{ lc => "en",</nowiki>
 +
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"},  
 
[
 
[
 
   {
 
   {
Line 26: Line 29:
 
     'processing' => 'en:powdered',
 
     'processing' => 'en:powdered',
 
     'text' => 'courgette'
 
     'text' => 'courgette'
  }
+
<nowiki>}</nowiki>
] ]
+
<nowiki>] ]</nowiki>

Revision as of 13:33, 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'
 },
 {
   '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'

} ] ]