diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-07-30 04:18:47 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-07-30 10:25:21 -0700 |
commit | deee6d505299c0504dd6b40cf2669b18068d3c95 (patch) | |
tree | 84e234e5648d23ffac78821dd044a42380cf7c1a /fzytest.c | |
parent | b76c67f554085652e4128e2ea8e85f24fd26ba17 (diff) |
Lesser penalty for leading and trailing gaps
Diffstat (limited to 'fzytest.c')
-rw-r--r-- | fzytest.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -44,6 +44,10 @@ int test_scoring(){ /* Prefer shorter matches */ assert(match("test", "tests") > match("test", "testing")); + /* Prefer shorter matches */ + assert(match("abc", " a b c ") > match("abc", " a b c ")); + assert(match("abc", " a b c ") > match("abc", " a b c ")); + return 0; } |