aboutsummaryrefslogtreecommitdiff
path: root/test/paths.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 13:40:17 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 13:40:17 -0400
commit59845e610f2c90474f34079d27b5f1e07071ded4 (patch)
tree1066ab6c5c6e6620adda6ac4575703b9d4bf0a0a /test/paths.tm
parent95633b1cc2da5294d9aec8c7eb9fca9a15c1a8bf (diff)
Deprecate `!!` print statement
Diffstat (limited to 'test/paths.tm')
-rw-r--r--test/paths.tm24
1 files changed, 12 insertions, 12 deletions
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()