Sha256: 09be7e40c55d168922c4ed2e2fb12fe3d578b8f739024f2fbc0897d3daed00af

Contents?: true

Size: 384 Bytes

Versions: 7

Compression:

Stored size: 384 Bytes

Contents

require "helper"

class LunarFuzzyWordTest < Test::Unit::TestCase
  context "the word 'dictionary'" do
    setup do
      @w = Lunar::FuzzyWord.new('dictionary')
    end

    should "have d, di, ... dictionary as it's partials" do
      assert_equal ['d', 'di', 'dic', 'dict', 'dicti', 'dictio',
        'diction', 'dictiona', 'dictionar', 'dictionary'], @w.partials
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lunar-0.6.0 test/test_lunar_fuzzy_word.rb
lunar-0.5.5 test/test_lunar_fuzzy_word.rb
lunar-0.5.4 test/test_lunar_fuzzy_word.rb
lunar-0.5.3 test/test_lunar_fuzzy_word.rb
lunar-0.5.2 test/test_lunar_fuzzy_word.rb
lunar-0.5.1 test/test_lunar_fuzzy_word.rb
lunar-0.5.0 test/test_lunar_fuzzy_word.rb