Sha256: 0bdda220fe6c087f99ba5b6a5a1bc0e75c16aa85bef1a4bd03bb0a3ff49da190
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
require_relative "./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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
text-1.3.1 | test/porter_stemming_test.rb |
text-1.3.0 | test/porter_stemming_test.rb |