@@ -7,10 +7,13 @@ module TestLoadSave
7
7
import FileIO: File, @format_str
8
8
load (file:: File{format"PBMText"} ) = " PBMText"
9
9
load (file:: File{format"PBMBinary"} ) = " PBMBinary"
10
- load (file:: File{format"HDF5"} ) = " HDF5"
11
10
load (file:: File{format"JLD"} ) = " JLD"
12
11
load (file:: File{format"GZIP"} ) = " GZIP"
13
12
end
13
+ module TestLoadSave2
14
+ import FileIO: File, @format_str
15
+ fileio_load (file:: File{format"HDF5"} ) = " HDF5"
16
+ end
14
17
15
18
sym2loader = copy (FileIO. sym2loader)
16
19
sym2saver = copy (FileIO. sym2saver)
23
26
24
27
add_loader (format " PBMText" , :TestLoadSave )
25
28
add_loader (format " PBMBinary" , :TestLoadSave )
26
- add_loader (format " HDF5" , :TestLoadSave )
29
+ add_loader (format " HDF5" , :TestLoadSave2 )
27
30
add_loader (format " JLD" , :TestLoadSave )
28
31
add_loader (format " GZIP" , :TestLoadSave )
29
32
@@ -285,12 +288,12 @@ load(f::File{format"AmbigExt2"}) = open(f) do io
285
288
read (stream (io), String)
286
289
end
287
290
288
- save (f:: File{format"AmbigExt1"} , testdata) = open (f, " w" ) do io
291
+ fileio_save (f:: File{format"AmbigExt1"} , testdata) = open (f, " w" ) do io
289
292
s = stream (io)
290
293
print (s, " ambigext1" )
291
294
print (s, testdata)
292
295
end
293
- save (f:: File{format"AmbigExt2"} , testdata) = open (f, " w" ) do io
296
+ fileio_save (f:: File{format"AmbigExt2"} , testdata) = open (f, " w" ) do io
294
297
s = stream (io)
295
298
print (s, " ambigext2" )
296
299
print (s, testdata)
0 commit comments