diff options
author | Eric Wong <e@80x24.org> | 2021-03-08 08:08:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-09 18:23:21 -0400 |
commit | f67658d41387f486b7a725ece2c5e1015a7c5a84 (patch) | |
tree | 5eab8b9dd224c18d363dcf7d1f4ff1d05648ccd9 /t/lei-q-thread.t | |
parent | 7d72d2814e6703bdf411f55ed0461eeb214b7e89 (diff) | |
download | public-inbox-f67658d41387f486b7a725ece2c5e1015a7c5a84.tar.gz |
They're unnecessary visual noise, and angle brackets don't always work as intended when going through Xapian's query parser. Since we already use "m:" and "refs:" instead of the actual header names, it should be obvious we're at liberty to abbreviate such things Link: https://public-inbox.org/meta/20210304184348.GA19350@dcvr/
Diffstat (limited to 't/lei-q-thread.t')
-rw-r--r-- | t/lei-q-thread.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/lei-q-thread.t b/t/lei-q-thread.t index 28c639f5..e24fb2cb 100644 --- a/t/lei-q-thread.t +++ b/t/lei-q-thread.t @@ -27,9 +27,9 @@ test_lei(sub { is(scalar(@$res), 3, 'got 2 results'); pop @$res; my %m = map { $_->{'m'} => $_ } @$res; - is_deeply($m{'<testmessage@example.com>'}->{kw}, ['seen'], + is_deeply($m{'testmessage@example.com'}->{kw}, ['seen'], 'flag set in direct hit'); - 'TODO' or is_deeply($m{'<a-reply@miss>'}->{kw}, ['draft'], + 'TODO' or is_deeply($m{'a-reply@miss'}->{kw}, ['draft'], 'flag set in thread hit'); lei_ok qw(q -t -t m:testmessage@example.com); @@ -37,9 +37,9 @@ test_lei(sub { is(scalar(@$res), 3, 'got 2 results with -t -t'); pop @$res; %m = map { $_->{'m'} => $_ } @$res; - is_deeply($m{'<testmessage@example.com>'}->{kw}, ['flagged', 'seen'], + is_deeply($m{'testmessage@example.com'}->{kw}, ['flagged', 'seen'], 'flagged set in direct hit'); - 'TODO' or is_deeply($m{'<testmessage@example.com>'}->{kw}, ['draft'], + 'TODO' or is_deeply($m{'testmessage@example.com'}->{kw}, ['draft'], 'flagged set in direct hit'); lei_ok qw(q -tt m:testmessage@example.com --only), "$ro_home/t2"; $res = json_utf8->decode($lei_out); |