X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fsearch.t;h=2f7b795ed8ea89bc0106c401d92a5f9f49c7d870;hp=c9bef718e42f204b574230bb0028dcfc892eaf63;hb=936670cb83971bf250571a7dd9b0a0a0b33babd8;hpb=9d6468d9560b8cd26ba2529d7a09a93ec5ad8c00 diff --git a/t/search.t b/t/search.t index c9bef718..2f7b795e 100644 --- a/t/search.t +++ b/t/search.t @@ -170,6 +170,13 @@ sub filter_mids { # body $res = $ro->query('goodbye'); is($res->[0]->mid, 'last@s', 'got goodbye message body'); + + # datestamp + $res = $ro->query('dt:20101002000001..20101002000001'); + @res = filter_mids($res); + is_deeply(\@res, ['ghost-message@s'], 'exact Date: match works'); + $res = $ro->query('dt:20101002000002..20101002000002'); + is_deeply($res, [], 'exact Date: match down to the second'); } # long message-id