summaryrefslogtreecommitdiff
path: root/test/libapt/uri_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/libapt/uri_test.cc')
-rw-r--r--test/libapt/uri_test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libapt/uri_test.cc b/test/libapt/uri_test.cc
index 99bb3067e..8216ade71 100644
--- a/test/libapt/uri_test.cc
+++ b/test/libapt/uri_test.cc
@@ -108,5 +108,13 @@ int main() {
equals("/debian/", U.Path);
}
+ // Percent-encoding.
+ {
+ URI U("ftp://foo:b%40r@example.org");
+ equals("foo", U.User);
+ equals("b@r", U.Password);
+ equals("ftp://foo:b%40r@example.org/", (std::string) U);
+ }
+
return 0;
}