Sha256: b38d5fafb03b194de849fd5520b06d3ab4a8ceaf663cf2f36d1e2fb2c0b6db23
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
require 'spec_helper' require 'support/double_metaphone_data' describe Phonetic::DoubleMetaphone do describe '.encode' do it 'should return Double Metaphone codes of string' do Phonetic::DOUBLE_METAPHONE_TEST_TABLE.each do |w, r| Phonetic::DoubleMetaphone.encode(w).should == r end end it 'should support max size of the code option' do Phonetic::DoubleMetaphone.encode('accede', size: 3).should == ['AKS', 'AKS'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phonetic-1.1.0 | spec/phonetic/double_metaphone_spec.rb |
phonetic-1.0.1 | spec/phonetic/double_metaphone_spec.rb |
phonetic-1.0.0 | spec/phonetic/double_metaphone_spec.rb |