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