diff options
author | David Robillard <d@drobilla.net> | 2022-11-12 18:10:14 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:22:55 -0500 |
commit | 6fe4c50fee3adf77f9ef18e89445a043db281eb8 (patch) | |
tree | 2a8872aba4075b0abd8c0a6d8a9001dcdcab0b16 /test/test_filesystem.c | |
parent | d9feb39a41cf3d0dfc4c797f1a7aee99d8609c16 (diff) | |
download | lilv-6fe4c50fee3adf77f9ef18e89445a043db281eb8.tar.gz lilv-6fe4c50fee3adf77f9ef18e89445a043db281eb8.tar.bz2 lilv-6fe4c50fee3adf77f9ef18e89445a043db281eb8.zip |
Remove filesystem module
Diffstat (limited to 'test/test_filesystem.c')
-rw-r--r-- | test/test_filesystem.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/test_filesystem.c b/test/test_filesystem.c deleted file mode 100644 index 2afbfda..0000000 --- a/test/test_filesystem.c +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2020 David Robillard <d@drobilla.net> -// SPDX-License-Identifier: ISC - -#undef NDEBUG - -#include "../src/filesystem.h" - -#include <assert.h> - -static void -test_path_is_child(void) -{ - assert(lilv_path_is_child("/a/b", "/a")); - assert(lilv_path_is_child("/a/b", "/a/")); - assert(lilv_path_is_child("/a/b/", "/a")); - assert(lilv_path_is_child("/a/b/", "/a/")); - - assert(!lilv_path_is_child("/a/b", "/a/c")); - assert(!lilv_path_is_child("/a/b", "/a/c/")); - assert(!lilv_path_is_child("/a/b/", "/a/c")); - assert(!lilv_path_is_child("/a/b/", "/a/c/")); - - assert(!lilv_path_is_child("/a/b", "/c")); - assert(!lilv_path_is_child("/a/b", "/c/")); - assert(!lilv_path_is_child("/a/b/", "/c")); - assert(!lilv_path_is_child("/a/b/", "/c/")); -} - -int -main(void) -{ - test_path_is_child(); - - return 0; -} |