aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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)