summaryrefslogtreecommitdiff
path: root/fzytest.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-08-04 14:47:40 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-08-04 17:59:44 -0700
commit175ffa6dc4f6ddad71ca1ddf7dc9a9007c4c6348 (patch)
treee9bdd14fe2127d70632b9ae13b774e6f1ac72713 /fzytest.c
parentb18b7a0701474b41a760931cf840f922607851d9 (diff)
Update README.md
Diffstat (limited to 'fzytest.c')
-rw-r--r--fzytest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fzytest.c b/fzytest.c
index 2d48e16..a0620f5 100644
--- a/fzytest.c
+++ b/fzytest.c
@@ -42,6 +42,9 @@ int test_scoring(){
assert(match("gemfil", "Gemfile.lock") < match("gemfil", "Gemfile"));
/* Prefer shorter matches */
+ assert(match("abce", "abcdef") > match("abce", "abc de"));
+
+ /* Prefer shorter candidates */
assert(match("test", "tests") > match("test", "testing"));
/* Scores first letter highly */