diff --git a/test/resources/italian.json b/test/resources/italian.json new file mode 100644 index 0000000..74f3372 --- /dev/null +++ b/test/resources/italian.json @@ -0,0 +1,4 @@ +{ + "camminare": "cammin", + "porte": "port" +} \ No newline at end of file diff --git a/test/resources/portuguese.json b/test/resources/portuguese.json new file mode 100644 index 0000000..447c588 --- /dev/null +++ b/test/resources/portuguese.json @@ -0,0 +1,4 @@ +{ + "atribuição": "atribuiçã", + "obrigações": "obrig" +} \ No newline at end of file diff --git a/test/stemword.test.js b/test/stemword.test.js index 238eccd..2ccf0fe 100644 --- a/test/stemword.test.js +++ b/test/stemword.test.js @@ -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`);