diff --git a/spec/porter_stemmer_spec.js b/spec/porter_stemmer_spec.js index 37592a53a..a2c90bdb9 100644 --- a/spec/porter_stemmer_spec.js +++ b/spec/porter_stemmer_spec.js @@ -189,4 +189,8 @@ describe('porter_stemmer', function() { var allCapitalStopwords = stopwords.words.join(' ').toUpperCase(); expect(allCapitalStopwords.tokenizeAndStem()).toEqual([]); }); + + it('should tokenize and stem including stopwords', function() { + expect('My dog is very fun TO play with And another thing, he is A poodle.'.tokenizeAndStem(true)).toEqual(['my', 'dog', 'is', 'veri', 'fun', 'to', 'plai', 'with', 'and', 'anoth', 'thing', 'he', 'is', 'a', 'poodl']); + }); });