forked from luisparravicini/classifier
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0235ea
commit ee0dd7a
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# coding:utf-8 | ||
require File.dirname(__FILE__) + '/test_helper' | ||
|
||
class SkipWordsTest < Test::Unit::TestCase | ||
class StopWordsTest < Test::Unit::TestCase | ||
def test_en | ||
assert_equal 80, Classifier::SkipWords.for('en').size | ||
assert_equal 80, Classifier::StopWords.for('en').size | ||
end | ||
|
||
def test_ru | ||
assert_equal 159, Classifier::SkipWords.for('ru').size | ||
assert_equal 159, Classifier::StopWords.for('ru').size | ||
end | ||
|
||
def test_stopword_es | ||
list = Classifier::SkipWords.for('es') | ||
list = Classifier::StopWords.for('es') | ||
assert list.include?('más') | ||
end | ||
|
||
def test_unknown | ||
assert_equal [], Classifier::SkipWords.for('xxyyzz') | ||
assert_equal [], Classifier::StopWords.for('xxyyzz') | ||
end | ||
end |