Sha256: 6ee3d31ca4a27945e7c0c9caf32a0db8d95107c2e6ac3816932fc4105bfa43cd
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
# coding:utf-8 require File.dirname(__FILE__) + '/test_helper' class SkipWordsTest < Test::Unit::TestCase def test_en assert_equal 80, Classifier::SkipWords.for('en').size end def test_ru assert_equal 159, Classifier::SkipWords.for('ru').size end def test_stopword_es list = Classifier::SkipWords.for('es') assert list.include?('más') end def test_unknown assert_equal [], Classifier::SkipWords.for('xxyyzz') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
luisparravicini-classifier-1.3.8 | test/stopwords_test.rb |
luisparravicini-classifier-1.3.7 | test/stopwords_test.rb |