summaryrefslogtreecommitdiffstats
path: root/test/test_filesystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_filesystem.c')
-rw-r--r--test/test_filesystem.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/test_filesystem.c b/test/test_filesystem.c
index 6f3dc1e..2afbfda 100644
--- a/test/test_filesystem.c
+++ b/test/test_filesystem.c
@@ -6,17 +6,6 @@
#include "../src/filesystem.h"
#include <assert.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
-
-static bool
-equals(char* string, const char* expected)
-{
- const bool result = !strcmp(string, expected);
- free(string);
- return result;
-}
static void
test_path_is_child(void)
@@ -37,27 +26,10 @@ test_path_is_child(void)
assert(!lilv_path_is_child("/a/b/", "/c/"));
}
-static void
-test_path_parent(void)
-{
- assert(equals(lilv_path_parent("/"), "/"));
- assert(equals(lilv_path_parent("//"), "/"));
- assert(equals(lilv_path_parent("/a"), "/"));
- assert(equals(lilv_path_parent("/a/"), "/"));
- assert(equals(lilv_path_parent("/a///b/"), "/a"));
- assert(equals(lilv_path_parent("/a///b//"), "/a"));
- assert(equals(lilv_path_parent("/a/b"), "/a"));
- assert(equals(lilv_path_parent("/a/b/"), "/a"));
- assert(equals(lilv_path_parent("/a/b/c"), "/a/b"));
- assert(equals(lilv_path_parent("/a/b/c/"), "/a/b"));
- assert(equals(lilv_path_parent("a"), "."));
-}
-
int
main(void)
{
test_path_is_child();
- test_path_parent();
return 0;
}