Sha256: 844ef04bcde90d9a78b5afa409386c92aa903b8c7591c58363f12958bf4e13e0
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
require 'helper' class TestNormalizer < MiniTest::Spec it %{applies itself to a string argument} do t = FuzzyMatch::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fuzzy_match-1.3.1 | test/test_normalizer.rb |
fuzzy_match-1.3.0 | test/test_normalizer.rb |