Sha256: d0b4a0df094736be0342656c8a83fe5971f4698e94f2a0de7554022e917d5521
Contents?: true
Size: 315 Bytes
Versions: 3
Compression:
Stored size: 315 Bytes
Contents
require 'helper' class TestTightener < Test::Unit::TestCase def test_001_apply t = FuzzyMatch::Tightener.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fuzzy_match-1.1.1 | test/test_tightening.rb |
fuzzy_match-1.1.0 | test/test_tightening.rb |
fuzzy_match-1.0.5 | test/test_tightening.rb |