Summary Files Commits Branches @commit @diff @stats
path: root / uri_test.c
diff options
context:
space:
mode:
1 files changed, 4 insertions, 1 deletions
-rw-r--r--uri_test.c5
diff --git a/uri_test.c b/uri_test.c
index 5881120..a153817 100644
--- a/uri_test.c
+++ b/uri_test.c
@@ -29,10 +29,13 @@ badwolf_ensure_uri_scheme_test(void)
{fallback, "", TRUE},
{"http:///dev/null", "/dev/null", FALSE},
{"file:///dev/null", "/dev/null", TRUE},
+ {"http:///usr/../dev/null", "/usr/../dev/null", FALSE},
+ {"file:///dev/null", "/usr/../dev/null", TRUE},
{"http://example.org", "example.org", FALSE},
{"http://example.org", "example.org", TRUE},
{"http://", "http://", FALSE},
- {"http://", "http://", TRUE} //
+ {"http://", "http://", TRUE},
+ {"http://badwolf.c", "badwolf.c", FALSE} //
};
for(size_t i = 0; i < sizeof(cases) / sizeof(cases[0]); i++)