aboutsummaryrefslogtreecommitdiff
path: root/test/paths.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-01 12:53:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-01 12:53:23 -0400
commit36afd7fbc7fbc5c4df041a4662cbc1da4cfc6441 (patch)
tree6a80fd6f6b9c8c7c61f8a4b6abb0b5cfb1088bc7 /test/paths.tm
parent6583fe9b389a6b4698f9364945885e6783506886 (diff)
parent3d5332493c50b32c683bda8f4d40ec4f12a323ec (diff)
Merge branch 'dev' into zero-nones
Diffstat (limited to 'test/paths.tm')
-rw-r--r--test/paths.tm6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/paths.tm b/test/paths.tm
index e72cddec..a76575e8 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -99,3 +99,9 @@ func main()
say("Globbing:")
>> (./*.tm).glob()
+
+ assert (./foo).type == Relative
+ assert (/foo).type == Absolute
+ assert (~/foo).type == Home
+ assert (/foo/baz).components == ["foo", "baz"]
+ assert Path(type=Relative, ["foo", "baz"]) == (./foo/baz)