aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utility/urlTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utility/urlTest.cpp')
-rw-r--r--tests/utility/urlTest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/utility/urlTest.cpp b/tests/utility/urlTest.cpp
index aca8300e..6058e1c4 100644
--- a/tests/utility/urlTest.cpp
+++ b/tests/utility/urlTest.cpp
@@ -72,7 +72,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("1.4", "password", u1.getPassword());
VASSERT_EQ("1.5", "host", u1.getHost());
VASSERT_EQ("1.6", 12345, u1.getPort());
- VASSERT_EQ("1.7", "/path/", u1.getPath());
+ VASSERT_EQ("1.7", "path/", u1.getPath());
vmime::utility::url u2("", "");
@@ -82,7 +82,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("2.4", "", u2.getPassword());
VASSERT_EQ("2.5", "host", u2.getHost());
VASSERT_EQ("2.6", 12345, u2.getPort());
- VASSERT_EQ("2.7", "/path/", u2.getPath());
+ VASSERT_EQ("2.7", "path/", u2.getPath());
vmime::utility::url u3("", "");
@@ -92,7 +92,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("3.4", "", u3.getPassword());
VASSERT_EQ("3.5", "host", u3.getHost());
VASSERT_EQ("3.6", 12345, u3.getPort());
- VASSERT_EQ("3.7", "/path/", u3.getPath());
+ VASSERT_EQ("3.7", "path/", u3.getPath());
vmime::utility::url u4("", "");
@@ -102,7 +102,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("4.4", "", u4.getPassword());
VASSERT_EQ("4.5", "host", u4.getHost());
VASSERT_EQ("4.6", vmime::utility::url::UNSPECIFIED_PORT, u4.getPort());
- VASSERT_EQ("4.7", "/path/", u4.getPath());
+ VASSERT_EQ("4.7", "path/", u4.getPath());
vmime::utility::url u5("", "");
@@ -122,7 +122,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("6.4", "", u4.getPassword());
VASSERT_EQ("6.5", "host", u4.getHost());
VASSERT_EQ("6.6", vmime::utility::url::UNSPECIFIED_PORT, u4.getPort());
- VASSERT_EQ("6.7", "/path/file", u4.getPath());
+ VASSERT_EQ("6.7", "path/file", u4.getPath());
}
void testParse2() {
@@ -157,7 +157,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("1.4", "pass\x56word", u1.getPassword());
VASSERT_EQ("1.5", "ho\x78st", u1.getHost());
VASSERT_EQ("1.6", 12345, u1.getPort());
- VASSERT_EQ("1.7", "/pa\xabth/", u1.getPath());
+ VASSERT_EQ("1.7", "pa\xabth/", u1.getPath());
}
void testParse4() {
@@ -168,14 +168,14 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("1.1", true, parseHelper(u1, "proto://host/path?p1=v1&p2=v2"));
VASSERT_EQ("1.2", "v1", u1.getParams()["p1"]);
VASSERT_EQ("1.3", "v2", u1.getParams()["p2"]);
- VASSERT_EQ("1.4", "/path", u1.getPath());
+ VASSERT_EQ("1.4", "path", u1.getPath());
vmime::utility::url u2("", "");
VASSERT_EQ("2.1", true, parseHelper(u2, "proto://host/path?p1=v1&p2"));
VASSERT_EQ("2.2", "v1", u2.getParams()["p1"]);
VASSERT_EQ("2.3", "p2", u2.getParams()["p2"]);
- VASSERT_EQ("2.4", "/path", u2.getPath());
+ VASSERT_EQ("2.4", "path", u2.getPath());
vmime::utility::url u3("", "");
@@ -189,7 +189,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("4.1", true, parseHelper(u4, "proto://host/path?p1=%3D&%3D=v2"));
VASSERT_EQ("4.2", "=", u4.getParams()["p1"]);
VASSERT_EQ("4.3", "v2", u4.getParams()["="]);
- VASSERT_EQ("4.4", "/path", u4.getPath());
+ VASSERT_EQ("4.4", "path", u4.getPath());
}
// '@' symbol in the username part
@@ -212,7 +212,7 @@ VMIME_TEST_SUITE_BEGIN(urlTest)
VASSERT_EQ("3", "b", u1.getPassword());
VASSERT_EQ("4", "::1", u1.getHost());
VASSERT_EQ("5", 80, u1.getPort());
- VASSERT_EQ("6", "/p", u1.getPath());
+ VASSERT_EQ("6", "p", u1.getPath());
}
void testParseIPv6NoPort() {