diff options
| author | Vincent Richard <[email protected]> | 2018-09-07 20:32:51 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-07 20:32:51 +0200 |
| commit | 71968d978daea9beffdc22522e8e9a29d52c3e9e (patch) | |
| tree | 48854151c452290f9e174765da3320ea845d5c50 /tests/parser/mediaTypeTest.cpp | |
| parent | Add SMTPS with AUTH PLAIN without SASL (diff) | |
| parent | Useless mutex does not make nl_langinfo() thread-safe. (diff) | |
| download | vmime-71968d978daea9beffdc22522e8e9a29d52c3e9e.tar.gz vmime-71968d978daea9beffdc22522e8e9a29d52c3e9e.zip | |
Merge branch 'master' into master
Diffstat (limited to 'tests/parser/mediaTypeTest.cpp')
| -rw-r--r-- | tests/parser/mediaTypeTest.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/tests/parser/mediaTypeTest.cpp b/tests/parser/mediaTypeTest.cpp index 4002b714..e98cfcda 100644 --- a/tests/parser/mediaTypeTest.cpp +++ b/tests/parser/mediaTypeTest.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 @@ -35,8 +35,8 @@ VMIME_TEST_SUITE_BEGIN(mediaTypeTest) VMIME_TEST_LIST_END - void testConstructors() - { + void testConstructors() { + vmime::mediaType t1; VASSERT_EQ("1.1", vmime::mediaTypes::APPLICATION, t1.getType()); @@ -53,8 +53,8 @@ VMIME_TEST_SUITE_BEGIN(mediaTypeTest) VASSERT_EQ("3.2", "sub", t3.getSubType()); } - void testCopy() - { + void testCopy() { + vmime::mediaType t1("type/sub"); VASSERT_EQ("eq1", "type", t1.getType()); @@ -72,8 +72,8 @@ VMIME_TEST_SUITE_BEGIN(mediaTypeTest) VASSERT("copyFrom", t1 == t2); } - void testSetFromString() - { + void testSetFromString() { + vmime::mediaType t1; t1.setFromString("type/sub"); @@ -81,8 +81,8 @@ VMIME_TEST_SUITE_BEGIN(mediaTypeTest) VASSERT_EQ("1.2", "sub", t1.getSubType()); } - void testParse() - { + void testParse() { + vmime::mediaType t1; t1.parse("type/sub"); @@ -90,12 +90,11 @@ VMIME_TEST_SUITE_BEGIN(mediaTypeTest) VASSERT_EQ("1.2", "sub", t1.getSubType()); } - void testGenerate() - { + void testGenerate() { + vmime::mediaType t1("type", "sub"); VASSERT_EQ("1", "type/sub", t1.generate()); } VMIME_TEST_SUITE_END - |
