Changes

Jump to navigation Jump to search
732 bytes removed ,  14:24, 24 March 2020
no edit summary
Line 45: Line 45:  
   ] ]
 
   ] ]
 
== Error message ==
 
== Error message ==
An error message for the '''text''' field might be:
   
   #  Failed test at t/ingredients_processing.t line 143.
 
   #  Failed test at t/ingredients_processing.t line 143.
  #    Structures begin differing at:
+
17060
  #          $got->[3]{text} = 'gehakte tomaten'
+
#    Structures begin differing at:
  #    $expected->[3]{text} = 'tomaten'
+
17061
This should be read as: replace ''gehakte tomaten'' with ''tomaten'' in the test
+
#          $got->[3]{text} = 'gehakte tomaten'
 
+
17062
To test the ingredient ''gemalen kokos'', we get:
+
#    $expected->[3]{text} = 'tomaten'
#  Failed test at ../t/ingredients_processing.t line 143.
+
17063
#    Structures begin differing at:
  −
#          $got->[3]{processing} = Does not exist
  −
#    $expected->[3]{processing} = 'en:ground'
  −
The test failed here as ''gemalen kokos'' is already in the ingredients taxonomy. We need to test with an ingredient that is not in the ingredients taxonomy. "gemalen XYZ" should not be in the ingredients taxonomy, but "XYZ" should be. (otherwise we won't match)
  −
 
  −
So the '''got''' is what you specified in the test and the '''expected''' is what the app calculated.
 
3,390

edits

Navigation menu