Skip to content

Commit

Permalink
tests for Polish ingredients processing
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed Apr 18, 2023
1 parent 5f53b5b commit 3c9d51b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions stop_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ nutri
Nutri
nutriscore
Nutriscore
ok
obf
off
openfoodfacts
Expand Down
2 changes: 1 addition & 1 deletion taxonomies/ingredients.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41304,7 +41304,7 @@ mk:ананас
nl:ananas
no:ananas
nv:Bilasáana diwozhí
pl:ananas
pl:ananas, ananasy
pt:ananas
ro:ananas
ru:ананас
Expand Down
27 changes: 26 additions & 1 deletion tests/unit/ingredients_processing.t
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,32 @@ my @tests = (
],
},
]
]
],

##################################################################
#
# POLISH ( PL )
#
##################################################################

[
{
lc => "pl",
ingredients_text => "suszony koperek, liofilizowane ananasy"
},
[
{
'id' => 'en:dill',
'processing' => 'en:dried',
'text' => 'koperek'
},
{
'id' => 'en:pineapple',
'processing' => 'en:freeze-dried',
'text' => 'ananasy'
}
]
],

);

Expand Down

0 comments on commit 3c9d51b

Please sign in to comment.