Processing test: Difference between revisions

From Open Food Facts wiki
No edit summary
No edit summary
Line 1: Line 1:
Template for processing adjectives tests:
Template for processing adjectives tests:


<nowiki>[
<nowiki>[ {
</nowiki><br />
</nowiki><br />
Define the language for which the tests are applicable.<br />
Define the language for which the tests are applicable.<br />
<nowiki>{ lc => "en",</nowiki><br />
<nowiki>lc => "en",</nowiki><br />
 
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.<br />
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.<br />
<nowiki>ingredients_text => "</nowiki> raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder"},</nowiki> <br />
<nowiki>ingredients_text => "</nowiki> raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder" },</nowiki> <br />


[
<nowiki>[ {</nowiki>
  {
     'id' => 'en:raw-milk',
     'id' => 'en:raw-milk',
     'text' => 'raw milk'
     'text' => 'raw milk'

Revision as of 13:36, 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 => " raw milk, sliced tomatoes, garlic powder, powdered eggplant, courgette powder" },</nowiki>

[ {

   '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'

} ] ]