Sha256: 17dbf64633dd52c16c5c7971093005c037a3100efd524a9119058c7a4d2347db
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class HelpersTest < Test::Unit::TestCase def test_word_hash c = Classifier::Base.new hash = {'good'=>1, "!"=>1, 'hope'=>1, "'"=>1, "."=>1, 'love'=>1, 'word'=>1, 'them'=>1, 'test'=>1} assert_equal hash, c.word_hash("here are some good words of test's. I hope you love them!") end def test_clean_word_hash c = Classifier::Base.new hash = {'good'=>1, 'word'=>1, 'hope'=>1, 'love'=>1, 'them'=>1, 'test'=>1} assert_equal hash, c.clean_word_hash("here are some good words of test's. I hope you love them!") end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
logankoester-classifier-1.4.3 | test/base_test.rb |
luisparravicini-classifier-1.4.2 | test/base_test.rb |