Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasgal committed Mar 23, 2024
1 parent 78e0c4e commit f6ffe11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,13 @@ end
# issue 246
arr = LazyTree(joinpath(SAMPLES_DIR, "issue246.root"), "tree_NOMINAL").v_mcGenWgt
@test all(reduce(vcat, arr) .== 1.0)

# issue 323
f = ROOTFile(joinpath(SAMPLES_DIR, "issue323.root"))
LazyTree(f, "sim", [r"ghost/ghost\.(.*)" => s"\1"])
@test 1200 == length(t)
@test t[1].time[2] 36.396744f0
@test t[end].xpos[end] 788.35144f0
end

@testset "jagged subbranch type by leaf" begin
Expand Down
Binary file added test/samples/issue323.root
Binary file not shown.

0 comments on commit f6ffe11

Please sign in to comment.