aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/mailboxTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2018-09-05 21:54:48 +0000
committerVincent Richard <[email protected]>2018-09-05 21:54:48 +0000
commitb55bdc9c0bb68236aa2de0a8eaec9f4c80cc2769 (patch)
treeefa18d623d3bc67c41d643aae145c16aa8f1006d /tests/parser/mailboxTest.cpp
parentMerge pull request #198 from xguerin/master (diff)
downloadvmime-b55bdc9c0bb68236aa2de0a8eaec9f4c80cc2769.tar.gz
vmime-b55bdc9c0bb68236aa2de0a8eaec9f4c80cc2769.zip
Code style and clarity.
Diffstat (limited to 'tests/parser/mailboxTest.cpp')
-rw-r--r--tests/parser/mailboxTest.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/tests/parser/mailboxTest.cpp b/tests/parser/mailboxTest.cpp
index 92fcd98f..127bb422 100644
--- a/tests/parser/mailboxTest.cpp
+++ b/tests/parser/mailboxTest.cpp
@@ -1,6 +1,6 @@
//
// VMime library (http://www.vmime.org)
-// Copyright (C) 2002-2013 Vincent Richard <[email protected]>
+// Copyright (C) 2002 Vincent Richard <[email protected]>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
@@ -34,10 +34,10 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)
VMIME_TEST_LIST_END
- void testParse()
- {
- static const vmime::string testSuitesParse[] =
- {
+ void testParse() {
+
+ static const vmime::string testSuitesParse[] = {
+
// Test 1
"My (this is a comment)name <me(another \\)comment) @ somewhere(else).com>",
@@ -94,8 +94,8 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)
"[address-list: [[mailbox: name=[text: [[word: charset=us-ascii, buffer=John]]], [email protected]]]]"
};
- for (unsigned int i = 0 ; i < sizeof(testSuitesParse) / sizeof(testSuitesParse[0]) / 2 ; ++i)
- {
+ for (unsigned int i = 0 ; i < sizeof(testSuitesParse) / sizeof(testSuitesParse[0]) / 2 ; ++i) {
+
vmime::string in = testSuitesParse[i * 2];
vmime::string out = testSuitesParse[i * 2 + 1];
@@ -112,8 +112,8 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)
}
}
- void testEmptyEmailAddress()
- {
+ void testEmptyEmailAddress() {
+
vmime::addressList addrList;
addrList.parse("\"Full Name\" <>");
@@ -127,8 +127,8 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)
VASSERT_EQ("email", "", mbox->getEmail());
}
- void testSeparatorInComment()
- {
+ void testSeparatorInComment() {
+
vmime::addressList addrList;
addrList.parse("aaa(comment,comment)@vmime.org, [email protected]");
@@ -146,8 +146,8 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)
VASSERT_EQ("email2", "[email protected]", mbox2->getEmail());
}
- void testAddressInName()
- {
+ void testAddressInName() {
+
vmime::mailbox mbox;
@@ -156,4 +156,3 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)
}
VMIME_TEST_SUITE_END
-