Sha256: 55b14de0e2e4dd9e99a4bd66020eef555f98f6bca251eec176a036fac8abdec4

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'

describe Phonetic::RefinedSoundex do
  describe '.encode' do
    it 'should return refined soundex code of word' do
      Phonetic::RefinedSoundex.encode('Braz').should == 'B1905'
      Phonetic::RefinedSoundex.encode('Caren').should == 'C30908'
      Phonetic::RefinedSoundex.encode('Hayers').should == 'H093'
      Phonetic::RefinedSoundex.encode('Lambard').should == 'L7081096'
      Phonetic::RefinedSoundex.encode('Noulton').should == 'N807608'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phonetic-1.2.0 spec/phonetic/refined_soundex_spec.rb
phonetic-1.1.0 spec/phonetic/refined_soundex_spec.rb
phonetic-1.0.1 spec/phonetic/refined_soundex_spec.rb
phonetic-1.0.0 spec/phonetic/refined_soundex_spec.rb