From 544b1fb6a70d55bf368b827136cf0f37a26e8288 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 7 Dec 2025 21:42:45 -0500 Subject: Change Paths to be an enum of their different types. --- test/paths.tm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/paths.tm b/test/paths.tm index bcda8e1f..d7630fc3 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -103,8 +103,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"] - assert Path(type=Relative, ["foo", "baz"]) == (./foo/baz) + assert (./foo).RelativePath + assert (/foo).AbsolutePath + assert (~/foo).HomePath + assert (/foo/baz).components() == ["foo", "baz"] + assert Path.RelativePath(["foo", "baz"]) == (./foo/baz) -- cgit v1.2.3