From dee3c1931dca4b60c92ee85d66e4457a31aa1acd Mon Sep 17 00:00:00 2001 From: Harold Thetiot Date: Wed, 25 Oct 2023 12:37:15 +0200 Subject: [PATCH] add italian and portuguese tests --- test/resources/italian.json | 4 ++++ test/resources/portuguese.json | 4 ++++ test/stemword.test.js | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/resources/italian.json create mode 100644 test/resources/portuguese.json 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`);