summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-10-10 11:46:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-10-10 11:46:30 -0700
commit620a3aa8354070d29e4fd32756eff25cb5ef378f (patch)
treeeeaa828a050454a3128fa6b01e83fa4004f03eb0 /tests
parent1b6d4d6e56607752b5ba5b465f943a3270c9f311 (diff)
downloadtxr-620a3aa8354070d29e4fd32756eff25cb5ef378f.tar.gz
txr-620a3aa8354070d29e4fd32756eff25cb5ef378f.tar.bz2
txr-620a3aa8354070d29e4fd32756eff25cb5ef378f.zip
New path-equal function.
* lisplib.c (copy_file_set_entries): Add path-equal to autoload symbols. * stdlib/copy-file.tl (path-equal): New function. * tests/018/path-equal.tl: New file. * txr.1: Documented.
Diffstat (limited to 'tests')
-rw-r--r--tests/018/path-equal.tl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/018/path-equal.tl b/tests/018/path-equal.tl
new file mode 100644
index 00000000..cf1fbb63
--- /dev/null
+++ b/tests/018/path-equal.tl
@@ -0,0 +1,18 @@
+(load "../common")
+
+(mtest
+ (path-equal "a" "a") t
+ (path-equal "a" "b") nil
+ (path-equal "/a" "a") nil
+
+ (path-equal "a" "a/") t
+ (path-equal "a/" "a/") t
+
+ (path-equal "a/b/../c" "a/c") t
+
+ (path-equal "a" "a/././.") t
+ (path-equal "a/." "a/././.") t
+
+ ;;(path-equal "/.." "/") t
+ ;;(path-equal "/../a" "/a/") t
+ )