aboutsummaryrefslogtreecommitdiff
path: root/tests/function
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-12-02 10:00:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-12-02 10:19:27 +0200
commitd3568852ca0506666fbd1b613439a3916c76ed88 (patch)
treef10e01e52a283e24bdbf2ca932a261b345870ce2 /tests/function
parentadb93716f41a3325f6d590cbfe6ecc8fa27d637e (diff)
Add $relative(<path>,<dir-path>) function
Diffstat (limited to 'tests/function')
-rw-r--r--tests/function/path/testscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/function/path/testscript b/tests/function/path/testscript
index 55d727f..b0c97c9 100644
--- a/tests/function/path/testscript
+++ b/tests/function/path/testscript
@@ -79,6 +79,12 @@ if! $posix
EOE
}
+: relative
+:
+{
+ $* <'print $relative([path] a/b/c, [dir_path] a/x/y)' >"../../b/c" : basics
+}
+
: extension
:
{