From 40dc5920c3c3b6cba41792340567f1e4c5ecf1f7 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 10 May 2020 17:22:10 +0200 Subject: tests/xapian: Add phrase search test. --- tests/xapian.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))) -- cgit v1.2.3