diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2020-05-10 17:22:10 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2020-05-10 17:22:10 +0200 |
commit | 40dc5920c3c3b6cba41792340567f1e4c5ecf1f7 (patch) | |
tree | 3b6c4885593cda08a2359c475daa3c6aca5fe39b | |
parent | ba77ab6899377ea562df0d83da6f19419c58c193 (diff) |
tests/xapian: Add phrase search test.
-rw-r--r-- | tests/xapian.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/xapian.scm b/tests/xapian.scm index 20ded37..4874ed2 100644 --- a/tests/xapian.scm +++ b/tests/xapian.scm @@ -89,12 +89,15 @@ (test-equal "search: finds simple strings" '("33299") (search "hello" #:pagesize 2)) - (test-equal "search: supports submitter prefix with name" + (test-equal "search: supports submitter prefix with partial name" '("26095") (search "submitter:Ricardo" #:pagesize 2)) (test-equal "search: supports submitter prefix with partial email address" '("26095") (search "submitter:rekado" #:pagesize 2)) + (test-equal "search: supports submitter prefix with phrase" + '("26095") + (search "submitter:\"Ricardo Wurmus\"" #:pagesize 2)) (test-equal "search: supports author prefix with email address" '("26095" "33299") (search "author:ludo" #:pagesize 2))) |