Sha256: 8d164213a1d38fe474353cceebb56e5eba141c4c9b798eedd97741aac3f326f5

Contents?: true

Size: 1.1 KB

Versions: 39

Compression:

Stored size: 1.1 KB

Contents

require_relative "test_helper"

class TestSynonyms < Minitest::Unit::TestCase

  def test_bleach
    store_names ["Clorox Bleach", "Kroger Bleach"]
    assert_search "clorox", ["Clorox Bleach", "Kroger Bleach"]
  end

  def test_saran_wrap
    store_names ["Saran Wrap", "Kroger Plastic Wrap"]
    assert_search "saran wrap", ["Saran Wrap", "Kroger Plastic Wrap"]
  end

  def test_burger_buns
    store_names ["Hamburger Buns"]
    assert_search "burger buns", ["Hamburger Buns"]
  end

  def test_bandaids
    store_names ["Band-Aid", "Kroger 12-Pack Bandages"]
    assert_search "bandaids", ["Band-Aid", "Kroger 12-Pack Bandages"]
  end

  def test_qtips
    store_names ["Q Tips", "Kroger Cotton Swabs"]
    assert_search "q tips", ["Q Tips", "Kroger Cotton Swabs"]
  end

  def test_reverse
    store_names ["Scallions"]
    assert_search "green onions", ["Scallions"]
  end

  def test_exact
    store_names ["Green Onions", "Yellow Onions"]
    assert_search "scallion", ["Green Onions"]
  end

  def test_stemmed
    store_names ["Green Onions", "Yellow Onions"]
    assert_search "scallions", ["Green Onions"]
  end

end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
searchkick-0.8.1 test/synonyms_test.rb
searchkick-0.8.0 test/synonyms_test.rb
searchkick-0.7.9 test/synonyms_test.rb
searchkick-0.7.8 test/synonyms_test.rb
searchkick-0.7.7 test/synonyms_test.rb
searchkick-0.7.6 test/synonyms_test.rb
searchkick-0.7.5 test/synonyms_test.rb
searchkick-0.7.4 test/synonyms_test.rb
searchkick-0.7.3 test/synonyms_test.rb
searchkick-0.7.2 test/synonyms_test.rb
searchkick-0.7.1 test/synonyms_test.rb
searchkick-0.7.0 test/synonyms_test.rb
searchkick-0.6.3 test/synonyms_test.rb
searchkick-0.6.2 test/synonyms_test.rb
searchkick-0.6.1 test/synonyms_test.rb
searchkick-0.6.0 test/synonyms_test.rb
searchkick-0.5.3 test/synonyms_test.rb
searchkick-0.5.2 test/synonyms_test.rb
searchkick-0.5.1 test/synonyms_test.rb
searchkick-0.5.0 test/synonyms_test.rb