aboutsummaryrefslogtreecommitdiff
path: root/test/paths.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/paths.tm')
-rw-r--r--test/paths.tm10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/paths.tm b/test/paths.tm
index 85f9b191..700a0393 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -1,5 +1,5 @@
# Tests for file paths
-func main():
+func main()
>> (/).exists()
= yes
>> (~/).exists()
@@ -29,19 +29,19 @@ func main():
>> tmpdir.files().has(tmpfile)
= yes
- if tmp_lines := tmpfile.by_line():
+ if tmp_lines := tmpfile.by_line()
>> [line for line in tmp_lines]
= ["Hello world!"]
- else:
+ else
fail("Couldn't read lines in $tmpfile")
>> (./does-not-exist.xxx).read()
= none
>> (./does-not-exist.xxx).read_bytes()
= none
- if lines := (./does-not-exist.xxx).by_line():
+ if lines := (./does-not-exist.xxx).by_line()
fail("I could read lines in a nonexistent file")
- else:
+ else
pass
>> tmpfile.remove()