tests/xapian: Add phrase search test.
authorRicardo Wurmus <rekado@elephly.net>
Sun, 10 May 2020 15:22:10 +0000 (17:22 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Sun, 10 May 2020 15:22:10 +0000 (17:22 +0200)
tests/xapian.scm

index 20ded376be06c033fe1de2fafb99a2b8393a7d45..4874ed22ec593c037857d33873b5839acc5d9e01 100644 (file)
           (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)))