Sha256: 75f600ed4ca9d040fbb9d09f35b40de8dfbcc9cef5ee951ae8dbf27e24dfc5a3
Contents?: true
Size: 414 Bytes
Versions: 6
Compression:
Stored size: 414 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require File.join(File.dirname(__FILE__), '..', 'lib', 'fast_stemmer') class TestStemmer < Test::Unit::TestCase def setup @stems = { 'riding' => 'ride', 'forestalled' => 'forestal', 'combined' => 'combin', 'ran' => 'ran', 'seen' => 'seen', 'excused' => 'excus' } end def test_stems @stems.each {|stem| assert_equal(stem[1], stem[0].stem)} end end
Version data entries
6 entries across 6 versions & 4 rubygems