From 620a3aa8354070d29e4fd32756eff25cb5ef378f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 10 Oct 2021 11:46:30 -0700 Subject: 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. --- tests/018/path-equal.tl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/018/path-equal.tl (limited to 'tests') 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 + ) -- cgit v1.2.3