Sha256: 071ce7c82aec754a3094e882dec0c0383ba065eca4eb70dfa10d8ba9a20f8d4e
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
require "preamble" require "text/porter_stemming" class PorterStemmingTest < Test::Unit::TestCase def test_cases inputs = data_file('porter_stemming_input.txt').split(/\n/) outputs = data_file('porter_stemming_output.txt').split(/\n/) inputs.zip(outputs).each do |word, expected_output| assert_equal expected_output, Text::PorterStemming.stem(word) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
text-1.2.2 | test/test_porter_stemming.rb |
text-1.0.5 | test/test_porter_stemming.rb |
text-1.2.1 | test/test_porter_stemming.rb |