aboutsummaryrefslogtreecommitdiffstats
path: root/tests/net/smtp/SMTPTransportTestUtils.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2017-12-14 21:11:58 +0000
committerVincent Richard <[email protected]>2017-12-14 21:11:58 +0000
commitd7a1b5817e8389e9a4ea3d33c4dd250df9c6860c (patch)
tree699e0cb70c024209ee9106fbc442ce41968ec34c /tests/net/smtp/SMTPTransportTestUtils.hpp
parentFixed #186: use SMTPUTF8 only when needed. (diff)
downloadvmime-d7a1b5817e8389e9a4ea3d33c4dd250df9c6860c.tar.gz
vmime-d7a1b5817e8389e9a4ea3d33c4dd250df9c6860c.zip
Issue #186: SMTPUTF8 is not an argument to RCPT + UTF8 in recipient address must switch the whole message to SMTPUTF8.
Diffstat (limited to '')
-rw-r--r--tests/net/smtp/SMTPTransportTestUtils.hpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/net/smtp/SMTPTransportTestUtils.hpp b/tests/net/smtp/SMTPTransportTestUtils.hpp
index cfd830cf..b5af2f10 100644
--- a/tests/net/smtp/SMTPTransportTestUtils.hpp
+++ b/tests/net/smtp/SMTPTransportTestUtils.hpp
@@ -607,7 +607,7 @@ public:
{
m_rcptLines.insert("RCPT TO:<[email protected]>");
m_rcptLines.insert("RCPT TO:<[email protected]>");
- m_rcptLines.insert("RCPT TO:<ré[email protected]> SMTPUTF8");
+ m_rcptLines.insert("RCPT TO:<ré[email protected]>");
}
else
{
@@ -681,11 +681,19 @@ public:
if (SUPPORTS_UTF8)
{
- VASSERT_EQ("MAIL", std::string("MAIL FROM:<expé[email protected]> SMTPUTF8"), line);
+ VASSERT(
+ "MAIL",
+ std::string("MAIL FROM:<[email protected]> SMTPUTF8") == line
+ || std::string("MAIL FROM:<expé[email protected]> SMTPUTF8") == line
+ );
}
else
{
- VASSERT_EQ("MAIL", std::string("MAIL FROM:<[email protected]>"), line);
+ VASSERT(
+ "MAIL",
+ std::string("MAIL FROM:<[email protected]>") == line
+ || std::string("MAIL FROM:<[email protected]>") == line
+ );
}
localSend("250 OK\r\n");