From e0a04d4171e03ae64b874b7229d25ce940afa301 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 11 Oct 2025 15:08:32 -0400 Subject: Bugfix for optional paths and converting path type into an actual enum instead of a struct wrapped around an enum --- test/paths.tm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/paths.tm b/test/paths.tm index a76575e8..bcda8e1f 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -13,6 +13,9 @@ func main() >> tmpdir := (/tmp/tomo-test-path-XXXXXX).unique_directory() assert (/tmp).subdirectories().has(tmpdir) + >> optional_path : Path? = (./foo) + assert optional_path == (./foo) + >> tmpfile := (tmpdir++(./one.txt)) >> tmpfile.write("Hello world") >> tmpfile.append("!") -- cgit v1.2.3