Skip to content

Commit

Permalink
Add test for nltk#1581
Browse files Browse the repository at this point in the history
  • Loading branch information
ExplodingCabbage committed Jan 7, 2017
1 parent 37fe28e commit daa4cdb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nltk/test/unit/test_stem.py
Expand Up @@ -97,4 +97,11 @@ def test_vocabulary_original_mode(self):
.open(encoding='utf-8')
.read()
.splitlines()
)
)

def test_oed_bug(self):
"""Test for bug https://github.com/nltk/nltk/issues/1581
Ensures that 'oed' can be stemmed without throwing an error.
"""
assert PorterStemmer().stem('oed') == 'o'

0 comments on commit daa4cdb

Please sign in to comment.