Skip to content

Commit 4346a89

Browse files
committed
adds a test for forced-format with filename
1 parent 034d5b3 commit 4346a89

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/loadsave.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,14 @@ add_saver(format"DUMMY", :Dummy)
230230
@test load(fn) == a
231231
rm(fn)
232232

233+
# force format
234+
fn = string(tempname(), ".dmy")
235+
savestreaming(format"DUMMY", fn) do writer
236+
write(writer, a)
237+
end
238+
@test load(fn) == a
239+
rm(fn)
240+
233241
# streaming I/O with streams
234242
save(fn, a)
235243
open(fn) do io

0 commit comments

Comments
 (0)