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) (unidiff) | |
tree | a0b493e1b54fb4619abac33f7ca58b93cb0152ab | |
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 | |||
@@ -73,6 +73,8 @@ void test_rfc_3986_normalize_uri() { | |||
73 | "http://hacker.klever.net/ah/%5x", false ); | 73 | "http://hacker.klever.net/ah/%5x", false ); |
74 | test_rfc_3986_normalize_uri( | 74 | test_rfc_3986_normalize_uri( |
75 | "Http://Hacker.Klever.Net:", true, "http://hacker.klever.net/" ); | 75 | "Http://Hacker.Klever.Net:", true, "http://hacker.klever.net/" ); |
76 | test_rfc_3986_normalize_uri( | ||
77 | "http://www.xxx.com/openid/1", true, "http://www.xxx.com/openid/1" ); | ||
76 | } | 78 | } |
77 | 79 | ||
78 | void test_w3c_to_time(const char *w3c,time_t expected) { | 80 | void test_w3c_to_time(const char *w3c,time_t expected) { |