Sha256: 23a02233be33aa5e650554503c3b328d9ab9cee28935a95fdaa2fcd85ebd97bf
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
require "test_helper" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
text-1.2.3 | test/porter_stemming_test.rb |