Add extra tests for get_parent_directory

This commit is contained in:
Esteban Manchado Velázquez 2012-02-11 22:43:42 +01:00 committed by Nick Mathewson
parent fa1d6f812c
commit 9ae7d511f4

View File

@ -1667,12 +1667,18 @@ test_util_parent_dir(void *ptr)
T("/home/wombat", 0, "/home/wombat/knish/");
T("/home/wombat", 0, "/home/wombat/knish///");
T("./home/wombat", 0, "./home/wombat/knish/");
#if 0
T("/", 0, "/home");
T("/", 0, "/home//");
#endif
T(".", 0, "./wombat");
T(".", 0, "./wombat/");
T(".", 0, "./wombat//");
T("wombat", 0, "wombat/foo");
T("wombat/..", 0, "wombat/../foo");
T("wombat/../", 0, "wombat/..//foo"); /* Is this correct? */
T("wombat/.", 0, "wombat/./foo");
T("wombat/./", 0, "wombat/.//foo"); /* Is this correct? */
T("wombat", 0, "wombat/..//");
T("wombat", 0, "wombat/foo/");
T("wombat", 0, "wombat/.foo");