1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-14 23:37:40 +00:00

Add file/temp.

This commit is contained in:
Andrew Chambers
2019-12-30 11:57:34 +13:00
parent 099a957e6c
commit c2f8441572
2 changed files with 21 additions and 0 deletions

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)