aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/paths.tm13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/paths.tm b/test/paths.tm
index bc85c31a..016c91cc 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -24,3 +24,16 @@ func main():
>> tmpdir:remove()
+ >> p := (/foo/baz.x/qux.tar.gz)
+ >> p:base_name()
+ = "qux.tar.gz"
+ >> p:parent()
+ = (/foo/baz.x)
+ >> p:extension()
+ = "tar.gz"
+ >> p:extension(full=no)
+ = "gz"
+ >> (~/.foo):extension()
+ = ""
+ >> (~/foo):extension()
+ = ""