stemmer_test.js 410 B

1234567891011121314
  1. module('lunr.stemmer')
  2. test('should stem words correctly', function () {
  3. Object.keys(stemmingFixture).forEach(function (testWord) {
  4. var expected = stemmingFixture[testWord]
  5. equal(lunr.stemmer(testWord), expected)
  6. })
  7. })
  8. test('should be registered with lunr.Pipeline', function () {
  9. equal(lunr.stemmer.label, 'stemmer')
  10. deepEqual(lunr.Pipeline.registeredFunctions['stemmer'], lunr.stemmer)
  11. })