about summary refs log tree commit homepage
path: root/t/search.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-10 01:51:05 +0000
committerEric Wong <e@80x24.org>2017-02-10 02:08:58 +0000
commit52f9edfb756676b471deac69e5d55df1933aa528 (patch)
tree70d8e53d8cd09600968e68f80bd4d288cf0ee77e /t/search.t
parentfa52216cc1bd95db3757f5bcae46ab539b66ce1d (diff)
downloadpublic-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.t9
1 files changed, 1 insertions, 8 deletions
diff --git a/t/search.t b/t/search.t
index 2e29b827..000a0385 100644
--- a/t/search.t
+++ b/t/search.t
@@ -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);