From 59845e610f2c90474f34079d27b5f1e07071ded4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 13:40:17 -0400 Subject: Deprecate `!!` print statement --- test/paths.tm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/paths.tm') diff --git a/test/paths.tm b/test/paths.tm index e8cfd2ab..e448dee1 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -82,49 +82,49 @@ func main(): = (..) # Concatenation tests: - !! Basic relative path concatenation: + say("Basic relative path concatenation:") >> (/foo) ++ (./baz) = (/foo/baz) - !! Concatenation with a current directory (`.`): + say("Concatenation with a current directory (`.`):") >> (/foo/bar) ++ (./.) = (/foo/bar) - !! Trailing slash in the first path: + say("Trailing slash in the first path:") >> (/foo/) ++ (./baz) = (/foo/baz) - !! Trailing slash in the second path: + say("Trailing slash in the second path:") >> (/foo/bar) ++ (./baz/) = (/foo/bar/baz) - !! Removing redundant current directory (`.`): + say("Removing redundant current directory (`.`):") >> (/foo/bar) ++ (./baz/./qux) = (/foo/bar/baz/qux) - !! Removing redundant parent directory (`..`): + say("Removing redundant parent directory (`..`):") >> (/foo/bar) ++ (./baz/qux/../quux) = (/foo/bar/baz/quux) - !! Collapsing `..` to navigate up: + say("Collapsing `..` to navigate up:") >> (/foo/bar/baz) ++ (../qux) = (/foo/bar/qux) - !! Current directory and parent directory mixed: + say("Current directory and parent directory mixed:") >> (/foo/bar) ++ (././../baz) = (/foo/baz) - !! Path begins with a `.`: + say("Path begins with a `.`:") >> (/foo) ++ (./baz/../qux) = (/foo/qux) - !! Multiple slashes: + say("Multiple slashes:") >> (/foo) ++ (./baz//qux) = (/foo/baz/qux) - !! Complex path with multiple `.` and `..`: + say("Complex path with multiple `.` and `..`:") >> (/foo/bar/baz) ++ (./.././qux/./../quux) = (/foo/bar/quux) - !! Globbing: + say("Globbing:") >> (./*.tm):glob() -- cgit v1.2.3