diff options
author | Eric Wong <e@80x24.org> | 2017-02-10 01:51:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-10 02:08:58 +0000 |
commit | 52f9edfb756676b471deac69e5d55df1933aa528 (patch) | |
tree | 70d8e53d8cd09600968e68f80bd4d288cf0ee77e /t/search.t | |
parent | fa52216cc1bd95db3757f5bcae46ab539b66ce1d (diff) | |
download | public-inbox-52f9edfb756676b471deac69e5d55df1933aa528.tar.gz |
This simplifies the code a bit and reduces the translation overhead for looking directly at data from tools shipped with Xapian. While we're at it, fix thread-all.t :)
Diffstat (limited to 't/search.t')
-rw-r--r-- | t/search.t | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -70,15 +70,8 @@ sub filter_mids { is($found->mid, 'root@s', 'mid set correctly'); ok(int($found->thread_id) > 0, 'thread_id is an integer'); + my ($res, @res); my @exp = sort qw(root@s last@s); - my $res = $ro->query("path:hello_world"); - my @res = filter_mids($res); - is_deeply(\@res, \@exp, 'got expected results for path: match'); - - foreach my $p (qw(hello hello_ hello_world2 hello_world_)) { - $res = $ro->query("path:$p"); - is($res->{total}, 0, "path variant `$p' does not match"); - } $res = $ro->query('s:(Hello world)'); @res = filter_mids($res); |