Sha256: 0a10a8f0417f13c085610254bd9b5032049a75e8e686120a529a885728748e8a

Contents?: true

Size: 325 Bytes

Versions: 12

Compression:

Stored size: 325 Bytes

Contents

require 'helper'

class TestTightener < Test::Unit::TestCase
  def test_001_apply
    t = LooseTightDictionary::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

12 entries across 12 versions & 1 rubygems

Version Path
loose_tight_dictionary-1.0.5 test/test_tightening.rb
loose_tight_dictionary-1.0.4 test/test_tightening.rb
loose_tight_dictionary-1.0.3 test/test_tightening.rb
loose_tight_dictionary-1.0.2 test/test_tightening.rb
loose_tight_dictionary-1.0.1 test/test_tightening.rb
loose_tight_dictionary-1.0.0 test/test_tightening.rb
loose_tight_dictionary-0.2.3 test/test_tightening.rb
loose_tight_dictionary-0.2.2 test/test_tightening.rb
loose_tight_dictionary-0.2.1 test/test_tightening.rb
loose_tight_dictionary-0.2.0 test/test_tightening.rb
loose_tight_dictionary-0.1.1 test/test_tightening.rb
loose_tight_dictionary-0.1.0 test/test_tightening.rb