148
148
add_format (format " DOUBLE_1" , " test1" , " .double" )
149
149
add_format (format " DOUBLE_2" , " test2" , " .double" )
150
150
151
- @fact_throws ErrorException query ( " test.double" )
152
151
fn = string (tempname (), " .double" )
153
152
open (fn, " w" ) do file
154
153
write (file, " test1" )
@@ -209,10 +208,10 @@ try
209
208
lenload0 = length (FileIO. sym2loader)
210
209
OSKey = @osx ? FileIO. OSX : @windows ? FileIO. Windows : @linux ? FileIO. Linux : error (" os not supported" )
211
210
add_format (
212
- format " MultiLib" ,
211
+ format " MultiLib" ,
213
212
UInt8[0x42 ,0x4d ],
214
213
" .mlb" ,
215
- [:LoadTest1 , FileIO. LOAD, OSKey],
214
+ [:LoadTest1 , FileIO. LOAD, OSKey],
216
215
[:LoadTest2 ]
217
216
)
218
217
@fact lensave0 + 1 --> length (FileIO. sym2saver)
@@ -243,25 +242,25 @@ finally
243
242
end
244
243
245
244
file_dir = joinpath (dirname (@__FILE__ ), " files" )
246
- context (" STL detection" ) do
245
+ context (" STL detection" ) do
247
246
q = query (joinpath (file_dir, " ascii.stl" ))
248
247
@fact typeof (q) --> File{format " STL_ASCII" }
249
248
q = query (joinpath (file_dir, " binary_stl_from_solidworks.STL" ))
250
249
@fact typeof (q) --> File{format " STL_BINARY" }
251
- open (q) do io
250
+ open (q) do io
252
251
@fact position (io) --> 0
253
252
skipmagic (io)
254
253
@fact position (io) --> 0 # no skipping for functions
255
254
end
256
255
end
257
- context (" PLY detection" ) do
256
+ context (" PLY detection" ) do
258
257
q = query (joinpath (file_dir, " ascii.ply" ))
259
258
@fact typeof (q) --> File{format " PLY_ASCII" }
260
259
q = query (joinpath (file_dir, " binary.ply" ))
261
260
@fact typeof (q) --> File{format " PLY_BINARY" }
262
261
263
262
end
264
- context (" Multiple Magic bytes" ) do
263
+ context (" Multiple Magic bytes" ) do
265
264
q = query (joinpath (file_dir, " magic1.tiff" ))
266
265
@fact typeof (q) --> File{format " TIFF" }
267
266
q = query (joinpath (file_dir, " magic2.tiff" ))
@@ -271,4 +270,4 @@ context("Multiple Magic bytes") do
271
270
skipmagic (io)
272
271
@fact position (io) --> 4
273
272
end
274
- end
273
+ end
0 commit comments