Sha256: 707d950b2b712d2b287a5d3fe80836f5a878292f310473413e6f58314647a499
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require_relative "./test_helper" require "text/double_metaphone" require 'csv' class DoubleMetaphoneTest < Test::Unit::TestCase def test_cases CSV.open(data_file_path('double_metaphone.csv'), 'r').to_a.each do |row| primary, secondary = Text::Metaphone.double_metaphone(row[0]) assert_equal row[1], primary assert_equal row[2], secondary.nil?? primary : secondary end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
text-1.3.1 | test/double_metaphone_test.rb |
text-1.3.0 | test/double_metaphone_test.rb |