diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-09 04:49:02 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-09 04:49:02 -0400 |
| commit | 0b441054b3a73f243f0602e62f5484a2cded3f95 (patch) | |
| tree | 66761722a4b206f88a4e43b58b4efb248e194815 /test/paths.tm | |
| parent | bc032de1dfc8ad03ed7d6ab0471140f393c74532 (diff) | |
Fix up some path logic
Diffstat (limited to 'test/paths.tm')
| -rw-r--r-- | test/paths.tm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/paths.tm b/test/paths.tm index 016c91cc..817ef86b 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -28,7 +28,7 @@ func main(): >> p:base_name() = "qux.tar.gz" >> p:parent() - = (/foo/baz.x) + = (/foo/baz.x/) >> p:extension() = "tar.gz" >> p:extension(full=no) @@ -37,3 +37,20 @@ func main(): = "" >> (~/foo):extension() = "" + + >> (~/.foo.baz.qux):extension() + = "baz.qux" + + >> (/):parent() + = (/) + >> (~/x/.):parent() + = (~/) + >> (~/x):parent() + = (~/) + >> (./):parent() + = (../) + >> (../):parent() + = (../../) + >> (../foo):parent() + = (../) + |
