diff options
| author | tholdawa <[email protected]> | 2014-01-16 19:51:51 +0100 |
|---|---|---|
| committer | tholdawa <[email protected]> | 2014-01-16 19:51:51 +0100 |
| commit | 280b2599308a491e12fbbac95d356358cf01abb9 (patch) | |
| tree | a5255e92c0da2269bad1a8e6d38cd20f1c573e22 /tests/utility/pathTest.cpp | |
| parent | C++11 std::shared_ptr fixes: (diff) | |
| parent | Merge pull request #65 from kisli/tholdawa-master (diff) | |
| download | vmime-280b2599308a491e12fbbac95d356358cf01abb9.tar.gz vmime-280b2599308a491e12fbbac95d356358cf01abb9.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tests/utility/pathTest.cpp')
| -rw-r--r-- | tests/utility/pathTest.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/utility/pathTest.cpp b/tests/utility/pathTest.cpp index 93215586..d0c1c091 100644 --- a/tests/utility/pathTest.cpp +++ b/tests/utility/pathTest.cpp @@ -26,7 +26,7 @@ #include "vmime/utility/path.hpp" -VMIME_TEST_SUITE_BEGIN(pathTest) +VMIME_TEST_SUITE_BEGIN(utilityPathTest) VMIME_TEST_LIST_BEGIN VMIME_TEST(testConstruct1) @@ -50,6 +50,7 @@ VMIME_TEST_SUITE_BEGIN(pathTest) VMIME_TEST(testIsDirectParentOf) VMIME_TEST(testIsParentOf) + VMIME_TEST(testIsParentOf_EquivalentCharset) VMIME_TEST(testRenameParent) VMIME_TEST_LIST_END @@ -271,6 +272,19 @@ VMIME_TEST_SUITE_BEGIN(pathTest) VASSERT_EQ("4", false, p2.isParentOf(p1)); } + void testIsParentOf_EquivalentCharset() + { + path p1; + p1.appendComponent(comp("foo", "us-ascii")); + + path p2; + p2.appendComponent(comp("foo", "utf-8")); + p2.appendComponent(comp("bar")); + p2.appendComponent(comp("baz")); + + VASSERT_EQ("1", true, p1.isParentOf(p2)); + } + void testRenameParent() { path p1; |
