@@ -10,6 +10,7 @@ load(file::File{format"PBMText"}) = "PBMText"
10
10
load (file:: File{format"PBMBinary"} ) = " PBMBinary"
11
11
load (file:: File{format"HDF5"} ) = " HDF5"
12
12
load (file:: File{format"JLD"} ) = " JLD"
13
+ load (file:: File{format"GZIP"} ) = " GZIP"
13
14
end
14
15
15
16
sym2loader = copy (FileIO. sym2loader)
25
26
add_loader (format " PBMBinary" , :TestLoadSave )
26
27
add_loader (format " HDF5" , :TestLoadSave )
27
28
add_loader (format " JLD" , :TestLoadSave )
29
+ add_loader (format " GZIP" , :TestLoadSave )
28
30
29
31
@test load (joinpath (file_dir," file1.pbm" )) == " PBMText"
30
32
@test load (joinpath (file_dir," file2.pbm" )) == " PBMBinary"
33
+
31
34
# Regular HDF5 file with magic bytes starting at position 0
32
35
@test load (joinpath (file_dir," file1.h5" )) == " HDF5"
33
36
# This one is actually a JLD file saved with an .h5 extension,
39
42
@test load (joinpath (file_dir," file2.h5" )) == " HDF5"
40
43
# JLD file saved with .jld extension
41
44
@test load (joinpath (file_dir," file.jld" )) == " JLD"
42
-
45
+ # GZIP file saved with .gz extension
46
+ @test load (joinpath (file_dir," file.csv.gz" )) == " GZIP"
43
47
@test_throws Exception load (" missing.fmt" )
44
48
end
45
49
finally
0 commit comments