diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 21:42:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 21:42:45 -0500 |
| commit | 544b1fb6a70d55bf368b827136cf0f37a26e8288 (patch) | |
| tree | 52886c54934fed676263611bdb401dbeb80aac63 /test/paths.tm | |
| parent | efbdf7b13e4b559958ed5b1b9ca9d772ae77d702 (diff) | |
Change Paths to be an enum of their different types.
Diffstat (limited to 'test/paths.tm')
| -rw-r--r-- | test/paths.tm | 10 |
1 files changed, 5 insertions, 5 deletions
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) |
