diff options
Diffstat (limited to 'tests/018')
-rw-r--r-- | tests/018/rel-path.tl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/018/rel-path.tl b/tests/018/rel-path.tl new file mode 100644 index 00000000..1afff796 --- /dev/null +++ b/tests/018/rel-path.tl @@ -0,0 +1,17 @@ +(load "../common") + +(mtest + (rel-path "/abc" "abc") :error + (rel-path "abc" "/abc") :error + (rel-path "." ".") "." + (rel-path "./abc" "abc") "." + (rel-path "abc" "./abc") "." + (rel-path "./abc" "./abc") "." + (rel-path "abc" "abc") "." + (rel-path "." "abc") "abc" + (rel-path "abc/def" "abc/ghi") "../ghi" + (rel-path "xyz/../abc/def" "abc/ghi") "../ghi" + (rel-path "abc" "d/e/f/g/h") "../d/e/f/g/h" + (rel-path "abc" "d/e/../g/h") "../d/g/h" + (rel-path "d/e/../g/h" ".") "../../.." + (rel-path "d/e/../g/h" "a/b") "../../../a/b") |