From 88a68ba952aeb81633eb07903a30d04005c6355c Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 6 Jul 2022 18:01:08 +0200 Subject: tests: Add a test for a message with abnormally large message id. --- tests/xapian.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/xapian.scm') diff --git a/tests/xapian.scm b/tests/xapian.scm index 73827b2..f754b56 100644 --- a/tests/xapian.scm +++ b/tests/xapian.scm @@ -87,7 +87,7 @@ (lambda () #t) (lambda () (test-equal "search: finds simple strings" - '("33299") + '("33299" "47187") (search "hello" #:pagesize 2)) (test-equal "search: supports submitter prefix with partial name" '("26095") @@ -104,6 +104,10 @@ (test-equal "search: finds by message id" '("33299") (search "msgid:c78be403-0616-67a0-fd5a-e1196b6a14d1@example.com" + #:pagesize 2)) + (test-equal "search: finds by long message id" + '("47187") + (search "msgid:X0AJfvGmJvZOXkqcxiL1wDpQGbPYwaMG5V24ltJiXsvMhc8i8OZkWd_uAf18tMpgcSq1izVJTiurVFRaflG2_dOtTi7UzrOZwT9DcV0gFo0=@protonmail.com" #:pagesize 2))) (lambda () (delete-file-recursively db-dir)))) -- cgit v1.2.3