Sha256: 9faeac1d7eb0cc014723371f6ffc1057982201d9d9f90ba8ce78238114f40090
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
require 'helper' class TestNormalizer < Test::Unit::TestCase def test_001_apply t = FuzzyMatch::Normalizer.new %r{(Ford )[ ]*(F)[\- ]*(\d\d\d)}i assert_equal 'Ford F350', t.apply('Ford F-350') assert_equal 'Ford F150', t.apply('Ford F150') assert_equal 'Ford F350', t.apply('Ford F 350') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fuzzy_match-1.2.2 | test/test_normalizer.rb |
fuzzy_match-1.2.1 | test/test_normalizer.rb |