aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/paths.tm19
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()
+ = (../)
+