Browse Source

A few more get_parent_directory tests.

Nick Mathewson 12 years ago
parent
commit
b86c562d76
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/test/test_util.c

+ 3 - 0
src/test/test_util.c

@@ -1302,6 +1302,9 @@ test_util_parent_dir(void *ptr)
   T("/home", 0, "/");
   T("./home/wombat/knish/", 0, "./home/wombat");
   T("./wombat", 0, ".");
+  T("wombat", -1, "");
+  T("w", -1, "");
+  T("wombat/knish", 0, "wombat");
   T("", -1, "");
   T("/", 0, "/");
   T("////", 0, "/");