Sha256: af5c563e842b677c6698cb2092e10807fdfc6abb3f1eeffdb632a13b53561739

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'
class StringExtensionsTest < Test::Unit::TestCase
	def test_word_hash
		hash = {:good=>1, :"!"=>1, :hope=>1, :"'"=>1, :"."=>1, :love=>1, :word=>1, :them=>1, :test=>1}
		assert_equal hash, "here are some good words of test's. I hope you love them!".word_hash
	end

   	
	def test_clean_word_hash
	   hash = {:good=>1, :word=>1, :hope=>1, :love=>1, :them=>1, :test=>1}
	   assert_equal hash, "here are some good words of test's. I hope you love them!".clean_word_hash
	end

end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
otherinbox-classifier-1.3.1.1 test/extensions/word_hash_test.rb
otherinbox-classifier-1.3.1.2.20121218.2 test/extensions/word_hash_test.rb
otherinbox-classifier-1.3.1.2.20121218 test/extensions/word_hash_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/classifier-1.3.3/test/extensions/word_hash_test.rb
classifier-1.3.3 test/extensions/word_hash_test.rb
classifier-1.3.2 test/extensions/word_hash_test.rb
secobarbital-classifier-1.3.1.1 test/extensions/word_hash_test.rb
classifier-1.2.0 test/string_extensions/word_hash_test.rb
classifier-1.3.1 test/extensions/word_hash_test.rb
classifier-1.3.0 test/extensions/word_hash_test.rb