summaryrefslogtreecommitdiffabout
path: root/test
authorMichael Krelin <hacker@klever.net>2009-09-01 19:57:41 (UTC)
committer Michael Krelin <hacker@klever.net>2009-09-01 19:57:41 (UTC)
commit34d57b6b55b51e4b489a4cafce8874dec558b600 (patch) (side-by-side diff)
treea0b493e1b54fb4619abac33f7ca58b93cb0152ab /test
parentf5fa75f3fc446482232c847c1ddea5808bee2c25 (diff)
downloadlibopkele-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>
Diffstat (limited to 'test') (more/less context) (show whitespace changes)
-rw-r--r--test/test.cc2
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() {
"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) {