author | Michael Krelin <hacker@klever.net> | 2009-09-01 19:57:41 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-09-01 19:57:41 (UTC) |
commit | 34d57b6b55b51e4b489a4cafce8874dec558b600 (patch) (side-by-side diff) | |
tree | a0b493e1b54fb4619abac33f7ca58b93cb0152ab /test/test.cc | |
parent | f5fa75f3fc446482232c847c1ddea5808bee2c25 (diff) | |
download | libopkele-34d57b6b55b51e4b489a4cafce8874dec558b600.zip libopkele-34d57b6b55b51e4b489a4cafce8874dec558b600.tar.gz libopkele-34d57b6b55b51e4b489a4cafce8874dec558b600.tar.bz2 |
added a test for the single-character trailing path component
due to the bug spotted by Hiroyuki ARAKI
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | test/test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc index 4bb2969..2143ac0 100644 --- a/test/test.cc +++ b/test/test.cc @@ -72,8 +72,10 @@ void test_rfc_3986_normalize_uri() { test_rfc_3986_normalize_uri( "http://hacker.klever.net/ah/%5x", false ); test_rfc_3986_normalize_uri( "Http://Hacker.Klever.Net:", true, "http://hacker.klever.net/" ); + test_rfc_3986_normalize_uri( + "http://www.xxx.com/openid/1", true, "http://www.xxx.com/openid/1" ); } void test_w3c_to_time(const char *w3c,time_t expected) { time_t t = opkele::util::w3c_to_time(w3c); |