diff options
author | Eric Wong <e@80x24.org> | 2019-12-19 05:18:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-20 03:09:28 +0000 |
commit | f6f0cfb7f3b673f05a95e8c9c3bc7d31580feadc (patch) | |
tree | 26f32f4ed58e17c9041deabb804cd754ea2a0290 /t | |
parent | 3082849c654fdee12ad97396b4e39be3c4888c1d (diff) | |
download | public-inbox-f6f0cfb7f3b673f05a95e8c9c3bc7d31580feadc.tar.gz |
The displays the Xapian ->get_percent value in the skeleton to improve scanning of relevancy; irrelevant results do not display that. This fixes broken #anchor links introduced in the previous commit, irrelevant messages now link to the /$INBOX/$MESSAGE_ID page.
Diffstat (limited to 't')
-rw-r--r-- | t/psgi_v2.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 8e81e89b..10176516 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -155,7 +155,7 @@ test_psgi(sub { $www->call(@_) }, sub { is($res->code, 200, 'success with threaded search'); my $raw = $res->content; ok($raw =~ s/\A.*>Results 1-3 of 3\b//s, 'got all results'); - my @over = ($raw =~ m/\d{4}-\d+-\d+\s+\d+:\d+ (.+)$/gm); + my @over = ($raw =~ m/\d{4}-\d+-\d+\s+\d+:\d+ +(?:\d+\% )?(.+)$/gm); is_deeply(\@over, [ '<a', '` <a', '` <a' ], 'threaded messages show up'); local $SIG{__WARN__} = 'DEFAULT'; |