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

Version Path
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/fast-stemmer-1.0.2/test/fast_stemmer_test.rb
romanbsd-fast-stemmer-1.0.0 test/fast_stemmer_test.rb
fast-stemmer-1.0.2 test/fast_stemmer_test.rb
fast-stemmer-1.0.1 test/fast_stemmer_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/fast-stemmer-1.0.0/test/fast_stemmer_test.rb
fast-stemmer-1.0.0 test/fast_stemmer_test.rb