Sha256: 2fe29bb2e83cdf5c0c66a73d2d00fe8de9aba76c9305e8a59153702329182c15

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 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

3 entries across 3 versions & 1 rubygems

Version Path
lunar-0.4.1 test/test_lunar_fuzzy_word.rb
lunar-0.4.0 test/test_lunar_fuzzy_word.rb
lunar-0.3.0 test/test_lunar_fuzzy_word.rb