summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore 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
@@ -70,12 +70,14 @@ void test_rfc_3986_normalize_uri() {
70 test_rfc_3986_normalize_uri( 70 test_rfc_3986_normalize_uri(
71 "http://hacker.klever.net/ah/%zx", false ); 71 "http://hacker.klever.net/ah/%zx", false );
72 test_rfc_3986_normalize_uri( 72 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
78void test_w3c_to_time(const char *w3c,time_t expected) { 80void test_w3c_to_time(const char *w3c,time_t expected) {
79 time_t t = opkele::util::w3c_to_time(w3c); 81 time_t t = opkele::util::w3c_to_time(w3c);
80 if(t!=expected) { 82 if(t!=expected) {
81 char tmp[512]; snprintf(tmp,sizeof(tmp)-1, 83 char tmp[512]; snprintf(tmp,sizeof(tmp)-1,