Hacked By AnonymousFox

Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/text-1.3.1/test/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/text-1.3.1/test/porter_stemming_test.rb

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

Hacked By AnonymousFox1.0, Coded By AnonymousFox