aboutsummaryrefslogtreecommitdiff
path: root/test/paths.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-01 12:50:56 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-01 12:50:56 -0400
commitc29c5f578cbcfb10a4eb5c4e790e73c531f5cceb (patch)
treeb980f6fad2b2ad41b3c3914840195087904d9678 /test/paths.tm
parent67bef2ac92ec771614c55126b2e50f46869a9051 (diff)
Add test for path field access
Diffstat (limited to 'test/paths.tm')
-rw-r--r--test/paths.tm5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/paths.tm b/test/paths.tm
index e72cddec..01be9b05 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -99,3 +99,8 @@ func main()
say("Globbing:")
>> (./*.tm).glob()
+
+ assert (./foo).type == Relative
+ assert (/foo).type == Absolute
+ assert (~/foo).type == Home
+ assert (/foo/baz).components == ["foo", "baz"]