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