Skip to content

Commit

Permalink
Fix traces test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed May 8, 2024
1 parent 6d7c906 commit d99f4df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/traces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ end
@test t1[:reward][1] == 5

@test size(Base.getindex(t1, :reward)) == (1,)
@test size(Base.getindex(t1, 1).state) == (2,3)

push!(t1, Val(:state), ones(2,3))

@test t1[:state][1] == ones(2,3)

t2 = Traces(; a=[2, 3], b=[false, true])
push!(t2, Val(:a), 5)
Expand Down

0 comments on commit d99f4df

Please sign in to comment.