aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-11 15:08:32 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-11 15:08:32 -0400
commite0a04d4171e03ae64b874b7229d25ce940afa301 (patch)
tree930830d645138e25d07d91313c5d723396169b3b /test
parent5b2acc934ee1cda4a514b617a56b43fc4ddf6a0f (diff)
Bugfix for optional paths and converting path type into an actual enum
instead of a struct wrapped around an enum
Diffstat (limited to 'test')
-rw-r--r--test/paths.tm3
1 files changed, 3 insertions, 0 deletions
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("!")