Skip to content

Commit

Permalink
add italian and portuguese tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hthetiot committed Oct 25, 2023
1 parent 73b592c commit dee3c19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/resources/italian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"camminare": "cammin",
"porte": "port"
}
4 changes: 4 additions & 0 deletions test/resources/portuguese.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"atribuição": "atribuiçã",
"obrigações": "obrig"
}
2 changes: 1 addition & 1 deletion test/stemword.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const snowball = require('../index')

describe('test stemword', () => {
['english', 'french', 'arabic'].forEach(lang => {
['english', 'french', 'arabic', 'italian', 'portuguese'].forEach(lang => {
describe(`for ${lang} words`, () => {
const words = require(`./resources/${lang}.json`);

Expand Down

0 comments on commit dee3c19

Please sign in to comment.