aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/charsetTestSuites.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2018-09-05 23:54:48 +0200
committerVincent Richard <[email protected]>2018-09-05 23:54:48 +0200
commitb55bdc9c0bb68236aa2de0a8eaec9f4c80cc2769 (patch)
treeefa18d623d3bc67c41d643aae145c16aa8f1006d /tests/parser/charsetTestSuites.hpp
parentMerge pull request #198 from xguerin/master (diff)
downloadvmime-b55bdc9c0bb68236aa2de0a8eaec9f4c80cc2769.tar.gz
vmime-b55bdc9c0bb68236aa2de0a8eaec9f4c80cc2769.zip
Code style and clarity.
Diffstat (limited to 'tests/parser/charsetTestSuites.hpp')
-rw-r--r--tests/parser/charsetTestSuites.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/parser/charsetTestSuites.hpp b/tests/parser/charsetTestSuites.hpp
index cb10e29e..9653016b 100644
--- a/tests/parser/charsetTestSuites.hpp
+++ b/tests/parser/charsetTestSuites.hpp
@@ -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
@@ -22,8 +22,8 @@
//
-struct charsetTestSuiteStruct
-{
+struct charsetTestSuiteStruct {
+
const char* fromCharset;
const char* toCharset;
const char* fromBytes;
@@ -33,8 +33,8 @@ struct charsetTestSuiteStruct
};
-static const charsetTestSuiteStruct charsetTestSuites[] =
-{
+static const charsetTestSuiteStruct charsetTestSuites[] = {
+
// Test data 1 (excerpt from http://www.gnu.org)
{
"gb2312", "utf-8",
@@ -97,7 +97,6 @@ static const charsetTestSuiteStruct charsetTestSuites[] =
"\xe7\xbb\x9f\x20\xe3\x80\x82\x0a",
0
}
-
};
static const vmime::size_t charsetTestSuitesCount = sizeof(charsetTestSuites) / sizeof(charsetTestSuites[0]);