* mu: update unit test (after more eager address matching)

This commit is contained in:
djcb 2013-02-12 00:00:40 +02:00
parent ae28d22c30
commit 332554c2b0
2 changed files with 3 additions and 2 deletions

View File

@ -645,7 +645,8 @@ each_contact_info (MuMsgContact *contact, MsgDoc *msgdoc)
* freeing */
escaped = mu_str_xapian_escape (contact->address, FALSE,
msgdoc->_strchunk);
msgdoc->_doc->add_term (pfx + escaped);
msgdoc->_doc->add_term
(std::string (pfx + escaped, 0, MuStore::MAX_TERM_LENGTH));
add_address_subfields (*msgdoc->_doc, contact->address, pfx,
msgdoc->_strchunk);

View File

@ -216,7 +216,7 @@ test_mu_query_03 (void)
{ "subject:Re: Learning LISP; Scheme vs elisp.", 0},
{ "subject:\"Re: Learning LISP; Scheme vs elisp.\"", 1},
{ "to:help-gnu-emacs@gnu.org", 4},
{ "t:help-gnu-emacs", 0},
{ "t:help-gnu-emacs", 4},
{ "flag:flagged", 1}
};