tonytonyjan / jaro_winkler

Ruby & C implementation of Jaro-Winkler distance algorithm which supports UTF-8 string.
MIT License
193 stars 29 forks source link

Update adjusting_table.rb #5

Closed tepperly closed 9 years ago

tepperly commented 9 years ago

Fix the initialization of DEFAULT_ADJ_TABLE.

I believe this resolves the issue I just submitted.

tonytonyjan commented 9 years ago

@tepperly hi

I appreciate you contribution :heart:

If it's not trouble for you, I hope you can add the file below and squash your commits into one, thanks a million :+1:

# spec/adjusting_table_spec.rb
require 'jaro_winkler'

describe JaroWinkler::DEFAULT_ADJ_TABLE do
  it 'should not be empty' do
    expect(JaroWinkler::DEFAULT_ADJ_TABLE).not_to be_empty
  end
end

ref #4

tepperly commented 9 years ago

This is the first time I've done a pull request via github, and I kind of messed it up. I'll fix and do a new pull request.