test/test_soulmate.rb in soulmate-0.0.6 vs test/test_soulmate.rb in soulmate-0.1.0

- old
+ new

@@ -92,9 +92,13 @@ end def test_prefixes_for_phrase loader = Soulmate::Loader.new('venues') + Soulmate.stop_words = ['the'] + + assert_equal ["kn", "kni", "knic", "knick", "knicks"], loader.prefixes_for_phrase("the knicks") + assert_equal ["te", "tes", "test", "testi", "testin", "th", "thi", "this"], loader.prefixes_for_phrase("testin' this") assert_equal ["te", "tes", "test", "testi", "testin", "th", "thi", "this"], loader.prefixes_for_phrase("testin' this") assert_equal ["te", "tes", "test"], loader.prefixes_for_phrase("test test") assert_equal ["so", "sou", "soul", "soulm", "soulma", "soulmat", "soulmate"], loader.prefixes_for_phrase("SoUlmATE") end end