HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement BuildProfileSpec support as dpkg has in 1.17.2
[ntk/apt.git]
/
test
/
libapt
/
uri_test.cc
diff --git
a/test/libapt/uri_test.cc
b/test/libapt/uri_test.cc
index
99bb306
..
8216ade
100644
(file)
--- 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;
}