]> git.saurik.com Git - apt.git/blobdiff - test/libapt/uri_test.cc
Merge remote-tracking branch 'mvo/feature/apt-binary2' into debian/sid
[apt.git] / test / libapt / uri_test.cc
index 99bb3067e3185452c4b704c9e192857b400662dc..8216ade71c9572cd16f768f4b8158f9168041093 100644 (file)
@@ -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;
 }