Sha256: 40acb82b0cbd7cc421d788bba174cf06a153628751ed47bad568aedabb2b2221
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
require "preamble" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
text-1.2.2 | test/test_double_metaphone.rb |
text-1.0.5 | test/test_double_metaphone.rb |
text-1.2.1 | test/test_double_metaphone.rb |