Skip to content

Commit

Permalink
Add tests for issue 7
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasgal committed Aug 20, 2020
1 parent cbb55a2 commit 9621297
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,13 @@ end
data, offsets = array(rootfile, "KM3NET_EVENT/KM3NET_EVENT/snapshotHits"; raw=true)
@test array_md5 == md5(data)
end


# Issues

@testset "issues" begin
rootfile = ROOTFile("test/samples/issue7.root")
@test 2 == length(keys(rootfile))
@test [1.0, 2.0, 3.0] == array(rootfile, "TreeD/nums")
@test [1.0, 2.0, 3.0] == array(rootfile, "TreeF/nums")
end
Binary file added test/samples/issue7.root
Binary file not shown.

0 comments on commit 9621297

Please sign in to comment.