Sha256: 26f25e48a8298d994f76761997d5e827335ab0f37dcb67cd1dd3ff08be09d1e9

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

require 'helper'

describe FuzzyMatch::Rule::Normalizer do
  it %{applies itself to a string argument} do
    t = FuzzyMatch::Rule::Normalizer.new %r{(Ford )[ ]*(F)[\- ]*(\d\d\d)}i
    t.apply('Ford F-350').must_equal 'Ford F350'
    t.apply('Ford F150').must_equal 'Ford F150'
    t.apply('Ford F 350').must_equal 'Ford F350'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fuzzy_match-1.5.0 test/test_normalizer.rb
fuzzy_match-1.4.1 test/test_normalizer.rb
fuzzy_match-1.4.0 test/test_normalizer.rb
fuzzy_match-1.3.3 test/test_normalizer.rb
fuzzy_match-1.3.2 test/test_normalizer.rb