Skip to content

Commit

Permalink
quote_html: test tricky conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed May 5, 2019
1 parent e3150ec commit aae4c52
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tests/test_quote_html.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
# include "test_common.hh"
# include "message_thread.hh"
# include "utils/ustring_utils.hh"
# include "config.hh"

BOOST_AUTO_TEST_SUITE(QuoteHtml)

BOOST_AUTO_TEST_CASE(quote_html_lynx)
BOOST_AUTO_TEST_CASE(quote_html)
{
using Astroid::Message;
setup ();
Expand Down Expand Up @@ -40,5 +41,23 @@ Reply to this email directly, view it on GitHub, or mute the thread.*)";
teardown ();
}

BOOST_AUTO_TEST_CASE(quote_html_convert_error)
{
using Astroid::Message;
setup ();

// TODO: Does not work with lynx
/* const_cast<ptree&>(astroid->config()).put ("mail.reply.quote_processor", "lynx -dump -stdin"); */

ustring fname = "tests/mail/test_mail/isspace-fail-utf-8.eml";

Message m (fname);
ustring quoted = m.quote ();

LOG (trace) << "quoted plain text: " << quoted;

teardown ();
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit aae4c52

Please sign in to comment.