diff options
Diffstat (limited to 'tests/function/path/testscript')
-rw-r--r-- | tests/function/path/testscript | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/function/path/testscript b/tests/function/path/testscript index 6219f3c..c58bbf8 100644 --- a/tests/function/path/testscript +++ b/tests/function/path/testscript @@ -158,6 +158,20 @@ if! $posix $* <'print $size([dir_path] )' >'0' : dir-zero } +: find +: +{ + $* <'print $find([paths] x y z, y)' >'true' : basics-true + $* <'print $find([paths] x y z, a)' >'false' : basics-false +} + +: find_index +: +{ + $* <'print $find_index([dir_paths] x y z, y)' >'1' : basics-true + $* <'print $find_index([dir_paths] x y z, a)' >'3' : basics-false +} + : invalid-path : p = ($posix ? /../foo : 'c:/../foo'); |