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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user