Add file/temp.

This commit is contained in:
Andrew Chambers
2019-12-30 12:00:35 +13:00
parent 099a957e6c
commit c2f8441572
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -277,4 +277,10 @@
(assert (= (constantly) (constantly)) "comptime 1")
(with [f (file/temp)]
(file/write f "foo\n")
(file/flush f)
(file/seek f :set 0)
(assert (= (string (file/read f :all)) "foo\n") "temp files work"))
(end-suite)