Skip to content

Commit

Permalink
test of Gadget2 format
Browse files Browse the repository at this point in the history
  • Loading branch information
islent committed Oct 28, 2021
1 parent 4be20a5 commit 785c5e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added test/files/gassphere_littleendian.gadget2
Binary file not shown.
5 changes: 5 additions & 0 deletions test/query.jl
Original file line number Diff line number Diff line change
Expand Up @@ -549,4 +549,9 @@ let file_dir = joinpath(@__DIR__, "files"), file_path = Path(file_dir)
@test FileIO.unknown(q) # FIXME: should be RData
@test FileIO.detect_rdata(io)
end

@testset "Gadget2" begin
q = query(joinpath(file_dir, "gassphere_littleendian.gadget2"))
@test typeof(q) == File(format"Gadget2")
end
end

0 comments on commit 785c5e6

Please sign in to comment.