From 0b441054b3a73f243f0602e62f5484a2cded3f95 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 9 Sep 2024 04:49:02 -0400 Subject: Fix up some path logic --- test/paths.tm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'test/paths.tm') 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() + = (../) + -- cgit v1.2.3