Sha256: 809335c7a6e93de6a32d05fe1b75e775144f8ed443ebd1e904bf8759258b8719
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
require 'helper' class TestBlocking < Test::Unit::TestCase def test_001_match_one b = LooseTightDictionary::Blocking.new %r{apple} assert_equal true, b.match?('2 apples') end def test_002_encompass_both b = LooseTightDictionary::Blocking.new %r{apple} assert_equal true, b.encompass?('apple', '2 apples') end def test_002_doesnt_encompass_both b = LooseTightDictionary::Blocking.new %r{apple} assert_equal false, b.encompass?('orange', '2 apples') end def test_003_no_information b = LooseTightDictionary::Blocking.new %r{apple} assert_equal nil, b.encompass?('orange', 'orange') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loose_tight_dictionary-0.2.0 | test/test_blocking.rb |