Browse code

Add test for prefering start of words

John Hawthorn authored on 13/07/2014 05:19:55
Showing 1 changed files

  • test.rb index 849bde2..4c30e44 100644
... ...
@@ -46,4 +46,8 @@ describe "score" do
46 46
     assert_matched "bab", "a"
47 47
     assert_matched "bababababab", "aaaaa"
48 48
   end
49
+
50
+  it "prefers start of words" do
51
+    assert_operator score("app/models/foo", "amo"), :<, score("app/models/order", "amo")
52
+  end
49 53
 end