aboutsummaryrefslogtreecommitdiff
path: root/test/paths.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 16:49:40 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 16:49:40 -0400
commite87e6dabfbdc1d35b5fe41b5d84dab38df3c8e76 (patch)
tree93588c81392489a621ce4fcca41645c92c0d06e9 /test/paths.tm
parentf69f862bf6e744834d781867a85f962c783f314e (diff)
Insert `then` for clarity
Diffstat (limited to 'test/paths.tm')
-rw-r--r--test/paths.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/paths.tm b/test/paths.tm
index 700a0393..7685d089 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -29,7 +29,7 @@ func main()
>> tmpdir.files().has(tmpfile)
= yes
- if tmp_lines := tmpfile.by_line()
+ if tmp_lines := tmpfile.by_line() then
>> [line for line in tmp_lines]
= ["Hello world!"]
else
@@ -39,7 +39,7 @@ func main()
= none
>> (./does-not-exist.xxx).read_bytes()
= none
- if lines := (./does-not-exist.xxx).by_line()
+ if lines := (./does-not-exist.xxx).by_line() then
fail("I could read lines in a nonexistent file")
else
pass